We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1666a15 commit d1adff5Copy full SHA for d1adff5
1 file changed
init/elivepatch.init
@@ -8,13 +8,17 @@ DAEMON=/usr/bin/elivepatch-server
8
DAEMON_NAME=elivepatch-server
9
PIDFILE=/var/run/${DAEMON_NAME}.pid
10
11
+start_pre() {
12
+ checkpath -d -o ${DAEMON_USER}:${DAEMON_GROUP} /var/log/${DAEMON_NAME}
13
+}
14
+
15
start () {
16
ebegin "Starting system ${DAEMON_NAME} daemon"
17
start-stop-daemon --start --background --pidfile ${PIDFILE} \
18
--user ${DAEMON_USER}:${DAEMON_GROUP} \
19
--make-pidfile \
- --stdout /var/log/elivepatch-server.log \
- --stderr /var/log/elivepatch-server.err \
20
+ --stdout /var/log/${DAEMON_NAME}/${DAEMON_NAME}.log \
21
+ --stderr /var/log/${DAEMON_NAME}/${DAEMON_NAME}.err \
22
--exec ${DAEMON} runserver
23
eend $? "Failed to start ${DAEMON_NAME}"
24
}
0 commit comments