1 |
jpp |
1.1 |
[Unit] |
2 |
|
|
Description=Madsonic media streaming solution |
3 |
|
|
|
4 |
|
|
[Service] |
5 |
|
|
EnvironmentFile=/etc/sysconfig/madsonic |
6 |
|
|
User=madsonic |
7 |
|
|
Group=madsonic |
8 |
|
|
#Environment=MADSONIC_HOME=/var/madsonic MADSONIC_HOST=0.0.0.0 MADSONIC_PORT=4041 MADSONIC_HTTPS_PORT=0 MADSONIC_CONTEXT_PATH=/madsonic |
9 |
|
|
ExecStart=/usr/bin/madsonic \ |
10 |
|
|
--init-memory=192 \ |
11 |
|
|
--pidfile=/run/madsonic/madsonic.pid \ |
12 |
|
|
--update=false \ |
13 |
|
|
--home=${MADSONIC_HOME} \ |
14 |
|
|
--host=${MADSONIC_HOST} \ |
15 |
|
|
--port=${MADSONIC_PORT} \ |
16 |
|
|
--https-port=${MADSONIC_HTTPS_PORT} \ |
17 |
|
|
--context-path=${MADSONIC_CONTEXT_PATH} \ |
18 |
|
|
--max-memory=${MADSONIC_MAX_MEMORY} \ |
19 |
|
|
--default-music-folder=${MADSONIC_DEFAULT_MUSIC_FOLDER} \ |
20 |
|
|
--default-upload-folder=${MADSONIC_DEFAULT_UPLOAD_FOLDER} \ |
21 |
|
|
--default-podcast-folder=${MADSONIC_DEFAULT_PODCAST_FOLDER} \ |
22 |
|
|
--default-playlist-import-folder=${MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER} \ |
23 |
|
|
--default-playlist-export-folder=${MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER} \ |
24 |
|
|
--default-playlist-backup-folder=${MADSONIC_DEFAULT_PLAYLIST_BACKUP_FOLDER} \ |
25 |
|
|
--default-transcode-folder=${MADSONIC_DEFAULT_TRANSCODE_FOLDER} \ |
26 |
|
|
--timezone=${MADSONIC_DEFAULT_TIMEZONE} \ |
27 |
|
|
--gzip=${MADSONIC_GZIP} \ |
28 |
|
|
--test=${MADSONIC_TEST} |
29 |
|
|
KillMode=mixed |
30 |
|
|
PIDFile=/run/madsonic/madsonic.pid |
31 |
|
|
SuccessExitStatus=143 |
32 |
|
|
|
33 |
|
|
[Install] |
34 |
|
|
WantedBy=multi-user.target sme-server.target |