mirror of
https://github.com/YunoHost-Apps/airsonic_ynh.git
synced 2024-09-03 18:06:14 +02:00
ec2b240e6d
so the service is less prone to be killed on low RAM servers It's still possible to overload the setting manually in the propertes file "/etc/default/$app"
24 lines
No EOL
689 B
Desktop File
24 lines
No EOL
689 B
Desktop File
# source file https://raw.githubusercontent.com/airsonic/airsonic/master/contrib/airsonic.service
|
|
# install documentation : https://airsonic.github.io/docs/install/war-standalone/
|
|
|
|
[Unit]
|
|
Description=__APP__ Media Server
|
|
After=remote-fs.target network.target
|
|
AssertPathExists=__FINALPATH__
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment="JAVA_OPTS=-Xmx256m"
|
|
Environment="JAVA_ARGS="
|
|
EnvironmentFile=-/etc/default/__APP__
|
|
ExecStart=/usr/bin/java \
|
|
$JAVA_OPTS \
|
|
-Dairsonic.home=${AIRSONIC_HOME} \
|
|
-Dserver.context-path=${CONTEXT_PATH} \
|
|
-Dserver.port=${PORT} \
|
|
-jar ${JAVA_JAR} $JAVA_ARGS
|
|
User=__APP__
|
|
Group=__APP__
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |