Skip to content

Commit afbc74c

Browse files
committed
Merge pull request #274 from ei82/master
Switched systemv start-rpm-template daemon's output
2 parents 46b9876 + 82befa8 commit afbc74c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-rpm-template

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ start() {
5252
cd ${{chdir}}
5353

5454
# FIXME figure out how to use daemon correctly
55-
nohup runuser $DAEMON_USER ${RUN_CMD} >/dev/null 2>&1 &
56-
55+
nohup runuser $DAEMON_USER ${RUN_CMD} >> /var/log/${{app_name}}/daemon.log 2>&1 &
56+
5757
# The way to go, but doesn't work properly
5858
# If the app creates the pid file this gets messy
5959
# daemon --user $DAEMON_USER --pidfile $PIDFILE $RUN_CMD &
@@ -131,4 +131,4 @@ case "$1" in
131131
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
132132
exit 2
133133
esac
134-
exit $?
134+
exit $?

0 commit comments

Comments
 (0)