I have created a static systemd service file 'irtrans.service' as follows:[Unit]Description=irtrans daemonAfter=network-online.target[Service]Type=forking#EnvironmentFile=/etc/conf.d/lircd.conf#PIDFile=/run/lirc/lircd.pidExecStartPre=/bin/mkdir -p /var/run/lircExecStartPost=/bin/ln -s /dev/lircd /var/run/lirc/lircd ExecStart=/usr/local/irtrans/irserver64 -timestamp -logfile /var/log/irtrans.log -loglevel 4 -daemon 172.31.252.14ExecStopPost=/bin/rm -f /dev/lircdExecStopPost=/bin/rm -fR /var/run/lirc[Install]#WantedBy=kodi.serviceand a kodi.service file as follows:[Unit]Description = kodi-standalone using xinitAfter = remote-fs.target systemd-user-sessions.serviceWants = irtrans.service[Service]User = kodiGroup = kodiPAMName = loginType = simpleExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcpRestart = on-abort[Install]WantedBy = multi-user.targetOn startup the kodi service starts, but the irtrans service fails.  I can start the irtrans service manually after the system starts, but after bootup it fails to start automatically.  The systemctl status for irtrans shows: irtrans.service - irtrans daemon   Loaded: loaded (/etc/systemd/system/irtrans.service; static; vendor preset: disabled)   Active: failed (Result: exit-code) since Sat 2016-12-24 17:44:52 EST; 1min 31s ago  Process: 767 ExecStart=/usr/local/irtrans/irserver64 -timestamp -logfile /var/log/irtrans.log -loglevel 4 -daemon 172.31.252.14 (c  Process: 755 ExecStartPre=/bin/mkdir -p /var/run/lirc (code=exited, status=0/SUCCESS)Dec 24 17:44:47 pclivingroom.ocg.ca systemd[1]: Starting irtrans daemon...Dec 24 17:44:52 pclivingroom.ocg.ca systemd[1]: irtrans.service: Control process exited, code=exited status=1Dec 24 17:44:52 pclivingroom.ocg.ca systemd[1]: Failed to start irtrans daemon.Dec 24 17:44:52 pclivingroom.ocg.ca systemd[1]: irtrans.service: Unit entered failed state.Dec 24 17:44:52 pclivingroom.ocg.ca systemd[1]: irtrans.service: Failed with result 'exit-code'.Can someone explain why this is happening and how to fix it?  I assume it means irtrans is executable is failing to start, but it only depends on the network which I have listed as a dependency.Suggestions?
Systemd service won't start automatically
systemd