Exemple de configuration pour lancer un service sous Linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]Description=Mon service server daemonAfter=network.target[Service]#Type=simple#Type=execType=forkingEnvironmentFile=/etc/sysconfig/monserviceExecStart=/usr/sbin/monservice#Restart= alwaysUser=monuserKillMode=processEnvironment=MON_SERVICE_HOME=/usr/share/monserviceEnvironment=MON_SERVICE_CONF=/etc/monservice/confEnvironment=LOCAL_JMX=false[Install]WantedBy=multi-user.target