Skip to content

Commit 5e6a7eb

Browse files
authored
Merge pull request #10 from teknomunk/master
Add systemd service file
2 parents 64ebaea + 2bced33 commit 5e6a7eb

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ multi:
1313
install:
1414
$(GOCC) install ./cmd/multi
1515

16+
install-systemd: install
17+
mkdir -p $(HOME)/.config/systemd/user/
18+
cp multiverse.service $(HOME)/.config/systemd/user
19+
1620
test:
1721
$(GOCC) test ./... -cover
1822

multiverse.service

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=Multiverse daemon
3+
After=network.target
4+
Requires=ipfs.service
5+
6+
[Service]
7+
ExecStart=/bin/bash -c "exec $HOME/go/bin/multi daemon"
8+
Restart=always
9+
RestartSec=5s
10+
11+
[Install]
12+
WantedBy=default.target

0 commit comments

Comments
 (0)