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