summaryrefslogtreecommitdiff
path: root/Urbit/Harbor.hs
blob: 1477c37515f7079dbab1aa090fd8cd26aece6121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{-

Urbit Harbor is a supervisor for Urbit ships on the local machine. It does no
orchestration, it just manages systemd services.

Plan:
    - make this run 10 fake galaxies
    - make this run 100 fake ships

- Requirements:
  - setup new ship

Setup process:

    <running as user "urbit-harbor">
    dir=/var/urbit/harbor
    urbit -c $dir/zod -k $dir/zod.key -x          # one-time setup
    <create $dir/zod.service from some template>
    systemctl --user enable $dir/zod.service      # nees fullpath
    systemctl --user start zod.service

Service Template:

    [Service]
    ExecStart=urbit -tq /var/urbit/harbor/zod  # maybe want -d?
    ExecStartPre=mkdir -p /var/urbit/harbor/zod

    [Unit]
    Description=zod

    [Install]
    WantedBy=multi-user.target

-}

module Urbit.Harbor where

main :: IO ()
main = pure ()