Skip to content

Commit

Permalink
Simpler upstart script without redirects and pipes
Browse files Browse the repository at this point in the history
lox committed Apr 19, 2018
1 parent c6ce4fc commit 27e04ff
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions init/upstart/lifecycled.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
start on startup
kill timeout 30
respawn
script
set -a
. /etc/lifecycled
mkfifo /tmp/lifecycled-log-fifo
( logger -t lifecycled </tmp/lifecycled-log-fifo & )
exec >/tmp/lifecycled-log-fifo
exec 2>&1
rm /tmp/lifecycled-log-fifo
exec /usr/bin/lifecycled
end script
exec /usr/bin/lifecycled >> /var/log/lifecycled 2>&1
end script

0 comments on commit 27e04ff

Please sign in to comment.