File tree 2 files changed +2
-1
lines changed
src/main/resources/com/typesafe/sbt/packager/archetypes/systemv
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ RUN_CMD="${{chdir}}/bin/${{app_name}}"
25
25
26
26
start_daemon () {
27
27
log_daemon_msg " Starting" " ${{app_name} }"
28
- [ -e " /var/run/${{app_name} }" ] || install -d -o" $DAEMON_USER " -m750 " /var/run/${{app_name} }"
28
+ [ -d " /var/run/${{app_name} }" ] || install -d -o " $DAEMON_USER " -m750 " /var/run/${{app_name} }"
29
29
start-stop-daemon --background --chdir ${{chdir} } --chuid " $DAEMON_USER " --make-pidfile --pidfile " $PIDFILE " --exec " $RUN_CMD " --start -- $RUN_OPTS
30
30
log_end_msg $?
31
31
}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ start() {
64
64
[ $retval -eq 0 ] && touch ${lockfile} && success || failure
65
65
66
66
# Insert pid into pid file for CentOS killproc function
67
+ [ -d " /var/run/${{app_name} }" ] || install -d -o " $DAEMON_USER " -m750 " /var/run/${{app_name} }"
67
68
echo
68
69
echo $PID > ${PIDFILE}
69
70
return $retval
You can’t perform that action at this time.
0 commit comments