Skip to content

Commit c678b5c

Browse files
committed
Rename facto-service.sh to unix-service.sh
1 parent 493d68b commit c678b5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

facto-service.sh renamed to unix-service.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# To install facto as a service:
33
# - move this file to /etc/init.d/facto
4-
# - update FACTO_ROOT
4+
# - update SERVICE_ROOT
55
# - run:
66
# sudo chmod +x /etc/init.d/facto
77
# sudo update-rc.d facto defaults # start at startup
@@ -21,8 +21,8 @@ HOME=/root
2121
export USER HOME
2222

2323
### 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
2626

2727
### helper functions ###
2828
kill_running() {
@@ -62,7 +62,7 @@ case "$1" in
6262

6363
echo "Starting facto..." && echo
6464

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 &
6666

6767
echo "Waiting for $RUNNING_PID to appear"
6868
for i in `seq 1 20`; do

0 commit comments

Comments
 (0)