Skip to content

Commit 1666a15

Browse files
author
Alice Ferrazzi
committed
elivepatch.init: add log output
1 parent 577a627 commit 1666a15

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

init/elivepatch.init

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +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}:${DAEMON_GROUP} --make-pidfile --exec ${DAEMON} runserver
13+
start-stop-daemon --start --background --pidfile ${PIDFILE} \
14+
--user ${DAEMON_USER}:${DAEMON_GROUP} \
15+
--make-pidfile \
16+
--stdout /var/log/elivepatch-server.log \
17+
--stderr /var/log/elivepatch-server.err \
18+
--exec ${DAEMON} runserver
1419
eend $? "Failed to start ${DAEMON_NAME}"
1520
}
1621

0 commit comments

Comments
 (0)