Skip to content

Commit e580a06

Browse files
author
Alice Ferrazzi
committed
init/elivepatch.init: added daemon_group option
1 parent e352dd8 commit e580a06

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

init/elivepatch.confd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# /etc/conf.d/elivepatch
2-
DAEMON_USER=root:root
2+
DAEMON_USER=root
3+
DAEMON_GROUP=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} --user ${DAEMON_USER} --make-pidfile --exec ${DAEMON} runserver
13+
start-stop-daemon --start --background --pidfile ${PIDFILE} --user ${DAEMON_USER}:${DAEMON_GROUP} --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} --user ${DAEMON_USER} --retry 10
19+
start-stop-daemon --stop --pidfile ${PIDFILE} --user ${DAEMON_USER}:${DAEMON_GROUP} --retry 10
2020
eend $? "Failed to stop ${DAEMON_NAME}"
2121
}

0 commit comments

Comments
 (0)