AWS Thinkbox Discussion Forums

DL6 Service on Fedora 18: systemd unit file

Hi,

I just wanted to share the systemd unit file for a working DL6 service on Fedora 18+.
Background: We use a Fedora 18 virtual machine to run Pulse and mongo db. Fedora 18 is really handy because it has all the dependencies build in as PRMs, especially the mono framework v2.10.

Problem was, systemd is startin all services in parallel on boot, the supplied init.d file is not really working because only with systemd one can define dependencies. For us, this is mainly the lwsmd.service which provides the login user via Active Directory. Thus, with the init script we had to start launcherservice manually after a reboot. Please remove lwsmd.service from the unit if you do not use PBIS/Likewise and edit the user! Otherwise it is a good idea to wait for network.target remote-fs.target nss-lookup.target
Put the file in place.
Then start the service with systemctl start dl6launcherd.service
If it works, then enable the service on startup with systemctl enable dl6launcherd.service and don’t forget to disable the init script!

[code][Unit]

/usr/lib/systemd/system/dl6launcherd.service

change the Requires to your needs. The lwsmd.service is just to show the point, normally this would be in nss-lookup.target

Description=Deadline 6 Launcher Servie
Requires=lwsmd.service
After=network.target remote-fs.target nss-lookup.target lwsmd.service

[Service]

Add an optional env. Just a file with some lines like VAR=value.

Beware: for systemd all pathes have to be defined absolute (security).

#EnvironmentFile=/etc/sysconfig/dl6launcherd
ExecStart=/opt/Thinkbox/Deadline6/bin/deadlinelauncher -nogui
ExecStop=/opt/Thinkbox/Deadline6/bin/deadlinelauncher -s
User=deadline
PIDFile=/var/run/deadline6lancherd.pid
Type=simple

[Install]
WantedBy=multi-user.target[/code]

Cheers,
Daniel

Privacy | Site terms | Cookie preferences