Skip to content

Commit

Permalink
Update teamcity-server.service
Browse files Browse the repository at this point in the history
  • Loading branch information
matisku committed Dec 21, 2017
1 parent e1b740f commit a893f50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/teamcity-server.service.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#/lib/systemd/system
[Unit]
Description="TeamCity Server"
Requires=network.target
After=syslog.target network.target

[Service]
Type=forking
Type=oneshot
User={{ teamcity_server_user }}
Group={{ teamcity_server_user }}
RemainAfterExit=true
SuccessExitStatus=0 143
EnvironmentFile=/etc/default/teamcity-server
PIDFile={{ teamcity_server_dir }}/logs/teamcity-server.pid
ExecStart={{ teamcity_server_dir }}/bin/teamcity-server.sh start
ExecStop={{ teamcity_server_dir }}/bin/teamcity-server.sh stop
Expand Down

0 comments on commit a893f50

Please sign in to comment.