Skip to content

Commit

Permalink
Changed systemd service file so that target starts up correctly
Browse files Browse the repository at this point in the history
Also added SuccessExitStatus directive to unit file to ignore exit value 143.
As a result of this setting, exit status 0 is returned.

Ticket 716
  • Loading branch information
vakwetu committed Sep 3, 2013
1 parent 265f790 commit f27f8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion base/common/shared/lib/systemd/system/pki-tomcatd@.service
@@ -1,12 +1,13 @@
[Unit]
Description=PKI Tomcat Server %i
After=pki-tomcatd.target
BindTo=pki-tomcatd.target
PartOf=pki-tomcatd.target

[Service]
Type=forking
ExecStart=/usr/bin/pkidaemon start tomcat %i
ExecStop=/usr/bin/pkidaemon stop tomcat %i
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target
Expand Down
2 changes: 0 additions & 2 deletions base/server/scripts/pkidaemon
Expand Up @@ -50,8 +50,6 @@ case $command in
exit $?
;;
stop)
echo "An exit status of '143' refers to the 'systemd' method of using"\
"'SIGTERM' to shutdown a Java process and can safely be ignored."
stop
exit $?
;;
Expand Down

0 comments on commit f27f8a5

Please sign in to comment.