mirror of
https://github.com/airsonic/airsonic.git
synced 2025-10-03 17:59:25 +02:00
Added example env file for systemd
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
parent
bd9c793500
commit
4b488cd349
2 changed files with 33 additions and 2 deletions
31
contrib/airsonic-systemd-env
Normal file
31
contrib/airsonic-systemd-env
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Set the location of the standalone war to use
|
||||||
|
#JAVA_JAR=/var/airsonic/airsonic.war
|
||||||
|
|
||||||
|
# Set any java opts separated by spaces
|
||||||
|
#JAVA_OPTS=-Xmx700m
|
||||||
|
|
||||||
|
# Set a different location for airsonic home.
|
||||||
|
# If this path is /var/libresonic or even contains "libresonic",
|
||||||
|
# the data from a previous libresonic can be used as is (i.e. without
|
||||||
|
# renaming libresonic.properties,db/libresonic*,etc
|
||||||
|
#AIRSONIC_HOME=/var/airsonic
|
||||||
|
|
||||||
|
# Change the port to listen on
|
||||||
|
#PORT=8080
|
||||||
|
|
||||||
|
# Change the path that is listened on
|
||||||
|
#CONTEXT_PATH=/airsonic
|
||||||
|
|
||||||
|
# Add any java args. These are different than JAVA_OPTS in that
|
||||||
|
# they are passed directly to the program. The default is empty:
|
||||||
|
#JAVA_ARGS=
|
||||||
|
|
||||||
|
# Note that there are several settings for spring boot, not explicitly listed
|
||||||
|
# here, but can be used in either JAVA_OPTS or JAVA_ARGS. The full list
|
||||||
|
# can be found here:
|
||||||
|
# https://docs.spring.io/spring-boot/docs/1.4.5.RELEASE/reference/htmlsingle/#common-application-properties
|
||||||
|
# For example to set debug across the board:
|
||||||
|
#JAVA_ARGS=--debug
|
||||||
|
|
||||||
|
# Or to change the ip address that is listened on:
|
||||||
|
#JAVA_ARGS=--server.address=127.0.0.1
|
|
@ -13,11 +13,11 @@ Environment="CONTEXT_PATH=/airsonic"
|
||||||
Environment="JAVA_ARGS="
|
Environment="JAVA_ARGS="
|
||||||
EnvironmentFile=-/etc/sysconfig/airsonic
|
EnvironmentFile=-/etc/sysconfig/airsonic
|
||||||
ExecStart=/usr/bin/java \
|
ExecStart=/usr/bin/java \
|
||||||
${JAVA_OPTS} \
|
$JAVA_OPTS \
|
||||||
-Dairsonic.home=${AIRSONIC_HOME} \
|
-Dairsonic.home=${AIRSONIC_HOME} \
|
||||||
-Dserver.context-path=${CONTEXT_PATH} \
|
-Dserver.context-path=${CONTEXT_PATH} \
|
||||||
-Dserver.port=${PORT} \
|
-Dserver.port=${PORT} \
|
||||||
-jar ${JAVA_JAR} ${JAVA_ARGS}
|
-jar ${JAVA_JAR} $JAVA_ARGS
|
||||||
User=airsonic
|
User=airsonic
|
||||||
Group=airsonic
|
Group=airsonic
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue