File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# To install facto as a service:
3
3
# - move this file to /etc/init.d/facto
4
- # - update FACTO_ROOT
4
+ # - update SERVICE_ROOT
5
5
# - run:
6
6
# sudo chmod +x /etc/init.d/facto
7
7
# sudo update-rc.d facto defaults # start at startup
@@ -21,8 +21,8 @@ HOME=/root
21
21
export USER HOME
22
22
23
23
# ## settings ##
24
- FACTO_ROOT =/path/to/facto
25
- RUNNING_PID=$FACTO_ROOT /RUNNING_PID
24
+ SERVICE_ROOT =/path/to/facto
25
+ RUNNING_PID=$SERVICE_ROOT /RUNNING_PID
26
26
27
27
# ## helper functions ###
28
28
kill_running () {
@@ -62,7 +62,7 @@ case "$1" in
62
62
63
63
echo " Starting facto..." && echo
64
64
65
- su pi -c " cd $FACTO_ROOT && bin/server" > /tmp/facto-logs 2>&1 &
65
+ su pi -c " cd $SERVICE_ROOT && bin/server" > /tmp/facto-logs 2>&1 &
66
66
67
67
echo " Waiting for $RUNNING_PID to appear"
68
68
for i in ` seq 1 20` ; do
You can’t perform that action at this time.
0 commit comments