parent
d7d3238a41
commit
bd9c793500
@ -0,0 +1,26 @@ |
|||||||
|
[Unit] |
||||||
|
Description=Airsonic Media Server |
||||||
|
After=remote-fs.target network.target |
||||||
|
AssertPathExists=/var/airsonic |
||||||
|
|
||||||
|
[Service] |
||||||
|
Type=simple |
||||||
|
Environment="JAVA_JAR=/var/airsonic/airsonic.war" |
||||||
|
Environment="JAVA_OPTS=-Xmx700m" |
||||||
|
Environment="AIRSONIC_HOME=/var/airsonic" |
||||||
|
Environment="PORT=8080" |
||||||
|
Environment="CONTEXT_PATH=/airsonic" |
||||||
|
Environment="JAVA_ARGS=" |
||||||
|
EnvironmentFile=-/etc/sysconfig/airsonic |
||||||
|
ExecStart=/usr/bin/java \ |
||||||
|
${JAVA_OPTS} \ |
||||||
|
-Dairsonic.home=${AIRSONIC_HOME} \ |
||||||
|
-Dserver.context-path=${CONTEXT_PATH} \ |
||||||
|
-Dserver.port=${PORT} \ |
||||||
|
-jar ${JAVA_JAR} ${JAVA_ARGS} |
||||||
|
User=airsonic |
||||||
|
Group=airsonic |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=multi-user.target |
||||||
|
|
Loading…
Reference in new issue