Switch non-primary service files to sysconfig

This commit is contained in:
Ivan Afonichev 2016-02-05 12:20:13 +03:00
parent 9d76b53468
commit 3bf9b4c925
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ After=syslog.target network.target
[Service] [Service]
Type=simple Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf EnvironmentFile=/etc/sysconfig/tomcat
Environment="NAME=" "USE_JSVC=true" Environment="NAME=" "USE_JSVC=true"
ExecStart=/usr/libexec/tomcat/server start ExecStart=/usr/libexec/tomcat/server start
ExecStop=/usr/libexec/tomcat/server stop ExecStop=/usr/libexec/tomcat/server stop

View File

@ -12,7 +12,7 @@ After=syslog.target network.target
[Service] [Service]
Type=simple Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf EnvironmentFile=/etc/sysconfig/tomcat
Environment="NAME=%I" Environment="NAME=%I"
EnvironmentFile=-/etc/sysconfig/tomcat@%I EnvironmentFile=-/etc/sysconfig/tomcat@%I
ExecStart=/usr/libexec/tomcat/server start ExecStart=/usr/libexec/tomcat/server start