mirror of
https://github.com/airsonic/airsonic.git
synced 2025-10-03 09:49:17 +02:00
Added example airsonic.service
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
parent
d7d3238a41
commit
bd9c793500
1 changed files with 26 additions and 0 deletions
26
contrib/airsonic.service
Normal file
26
contrib/airsonic.service
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue