We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46b9876 + 82befa8 commit afbc74cCopy full SHA for afbc74c
src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-rpm-template
@@ -52,8 +52,8 @@ start() {
52
cd ${{chdir}}
53
54
# FIXME figure out how to use daemon correctly
55
- nohup runuser $DAEMON_USER ${RUN_CMD} >/dev/null 2>&1 &
56
-
+ nohup runuser $DAEMON_USER ${RUN_CMD} >> /var/log/${{app_name}}/daemon.log 2>&1 &
+
57
# The way to go, but doesn't work properly
58
# If the app creates the pid file this gets messy
59
# daemon --user $DAEMON_USER --pidfile $PIDFILE $RUN_CMD &
@@ -131,4 +131,4 @@ case "$1" in
131
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
132
exit 2
133
esac
134
-exit $?
+exit $?
0 commit comments