-
Notifications
You must be signed in to change notification settings - Fork 1
/
nebs.service
24 lines (21 loc) · 889 Bytes
/
nebs.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This is used for running a nebs instance. Uses the default instance, and
# client logging to /var/log/nebs-access.log.
# This file should be placed in: /lib/systemd/system/nebs.service
# and assumes nebula is installed to: /var/lib/nebula
# probably best to install a symlink
# /lib/systemd/system/nebs.service->/var/lib/nebula/nebs.service
# We're using pi as the user here, assuming the cloud was mirrored by the pi
# user. That should be changed to whoever actuall mirrored the cloud.
[Unit]
Description=nebs instance
After=network.target
[Service]
User=pi
Group=pi
Environment="PATH=/home/zadjii/.local/bin:/home/zadjii/.local/lib/python2.7:"
ExecStart=/usr/bin/python /var/lib/nebula/nebs.py -v debug -l /var/lib/nebula/default.nebs.log --access /var/lib/nebula/default.nebs.access.log start
Restart=always
Type=simple
NotifyAccess=all
[Install]
WantedBy=multi-user.target