Skip to content

Commit c27e47c

Browse files
committed
simplefy startin program, make it work with init
1 parent c3917e0 commit c27e47c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

start_doorbotd.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/bash
2-
3-
(
4-
cd "$(dirname "$0")"
5-
su "$(stat -c "%U" user.db)" -c "while true; do python ./doorbotd.py; sleep 5; done"
6-
)&
2+
ERRLOG=/srv/doorbot/doorbot.err
3+
cd "$(dirname "$0")"
4+
su "$(stat -c "%U" user.db)" -c "while true; do python ./doorbotd.py; sleep 5; done" >>"$ERRLOG" 2>&1 &

0 commit comments

Comments
 (0)