Skip to content

Commit efec551

Browse files
author
Alice Ferrazzi
committed
init/elivepatch.init: fixed missing user option
1 parent a1517e8 commit efec551

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

init/elivepatch.confd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# /etc/conf.d/elivepatch
2-
DAEMON_USER=root
2+
DAEMON_USER=root:root

init/elivepatch.init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ PIDFILE=/var/run/${DAEMON_NAME}.pid
1010

1111
start () {
1212
ebegin "Starting system $DAEMON_NAME daemon"
13-
start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} runserver
13+
start-stop-daemon --start --background --pidfile ${PIDFILE} --user ${DAEMON_USER} --make-pidfile --exec ${DAEMON} runserver
1414
eend $? "Failed to start $DAEMON_NAME"
1515
}
1616

1717
stop () {
1818
ebegin "Stopping system $DAEMON_NAME daemon"
19-
start-stop-daemon --stop --pidfile ${PIDFILE} --retry 10
19+
start-stop-daemon --stop --pidfile ${PIDFILE} --user ${DAEMON_USER} --retry 10
2020
eend $? "Failed to stop $DAEMON_NAME"
2121
}

0 commit comments

Comments
 (0)