Skip to content

Commit 4ce1544

Browse files
committed
add systemd unit service
1 parent abe8765 commit 4ce1544

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: systemd/tob.service

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Custom Notification Bot written in Go
3+
Documentation=https://github.com/telkomdev/tob/blob/master/README.md
4+
After=network.target
5+
6+
[Service]
7+
EnvironmentFile=/home/vagrant/tob/config.json
8+
Type=simple
9+
User=vagrant
10+
ExecStart=/home/vagrant/tob/tob -c /home/vagrant/tob/config.json
11+
StandardOutput=file:/var/log/tob.log
12+
StandardError=file:/var/log/tob-error.log
13+
Restart=on-failure
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)