[dvblast-devel] Dvblast systemd

James Harrison james at talkunafraid.co.uk
Mon Oct 12 17:24:12 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/10/2015 15:55, FRANCISCO RUIZ wrote:
> 
> Giogio,
> 
> Thanks for you answer. I want dvblast start on boot . this is ok??
> 
> *Unit Description=Stream Dvblast
> 
> Service Type=forking ExecStart=/usr/bin/dvblast.sh
> 
> Install WantedBy=multi-user.target*
> 

You don't need to fork dvblast with systemd. You also want to have a
dependency to make sure the network is up before starting dvblast.
Last but not least you can run it as a simple service which will
automatically ensure it's running and restart it if needed:

[Unit]
Description=dvblast
After=network.target

[Service]
Type=simple
User=CHANGEMETOYOURUSERNAME
ExecStart=/usr/bin/dvblast
RestartSec=3
Restart=always

[Install]
WantedBy=multi-user.target


- -- 
Cheers,
James Harrison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQIcBAEBAgAGBQJWG9CcAAoJENTyYHL8dmp9xPMP/2nwp+tPtjLLsGyBSv/giB9O
M10baqQ0mcCa941XO8N5cDLLlerc/GmyYytA/Wm60D9cGwT4AJTyNwtMBtTJzyuN
rUTMTudgEpgt51IAqqXPRdPah0xd09un7gzknMWk7fC24q+ooZuxgWuFp5vTHZaU
7MAEt9oDxwl2kC9Pphoe7TWL2ugqW/87812lrrS45XasWjumU6a1NQqGK/OzFm4j
uxvFKlhI4RteorVIiC6axOE7yWwZ8OrXeKSdXWHLACaCdkpb2EfnbT7c433wPAp7
Ed5y5ZSzuUqKw8N4fe8FCLRDHKPmZ/WctwTO/53pPHiuub+PwqdClDVseiM5Bh7w
kVXEJz0af5wqS1SbD61xYuWOId2R277HajKA/mRU88hlh8zSZrgOPMFhqIImceef
mzeSdgYYmXB+ZapMp7r0IeZ0MqK2zlVF4LRRhzslKQCLJATWwaKfx2U1z/aPUSgs
xJb6Fd+8pBvDL56Mz75fyop9lI/WqVJWp6ieEW6t4fBZqwHeoLCq07Vte2ENOcR/
kKNvBl26lf7zVYyXcaYVBND9xu8grUlbMccK3L2sjTBoYL686iM3qH8ML4/xNf27
23mfmQXotkROAM2E1cRDwHWdtbTkMZjqv3nCdgwGEYsWD9fYgjnDyF6psRidjOKn
onLUEJBL98VTIoZ4U+2q
=qbKO
-----END PGP SIGNATURE-----


More information about the dvblast-devel mailing list