I have been following numerous tutorials on how to write a startup script for systemd (Fedora 25 on Vbox). However, I'm not able to make it work.Here is the bash script /home/dario/Desktop/unix/SYSTEMD/print_date.sh that I want to run:#!/bin/bashdate > startup_dateI changed permissions on the file, chmod 755 print_date.shI created the service file /etc/systemd/system/print_date.service (this is just the last versions, I tried out many other iterations):[Unit]Description=Example startup scriptAfter=multi-user.target[Service]Type=forkingExecStart=/home/dario/Desktop/unix/SYSTEMD/print_date.shUser=rootGroup=root[Install]WantedBy=multi-user.targetI run systemctl daemon-reloadsystemctl enable print_dateand to test it out witout rebootingsystemctl start print_datewhich gives me the error[root@dario SYSTEMD]# systemctl start print_dateJob for print_date.service failed because the control process exited with error code.See systemctl status print_date.service and journalctl -xe for details.If I try to debug it with journal -xn the result is:[root@dario SYSTEMD]# journalctl -xn-- Logs begin at Wed 2016-12-28 13:03:41 PST, end at Sat 2017-03-18 12:25:39 PDT. --Mar 18 12:25:35 dario systemd[4143]: print_date.service: Failed at step EXEC spawning /home/dario/Desktop/unix/SYSTEMD/print_date.sh: Permissi-- Subject: Process /home/dario/Desktop/unix/SYSTEMD/print_date.sh could not be executed-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- The process /home/dario/Desktop/unix/SYSTEMD/print_date.sh could not be executed and failed.-- -- The error number returned by this process is 13.Mar 18 12:25:35 dario systemd[1]: print_date.service: Control process exited, code=exited status=203Mar 18 12:25:35 dario systemd[1]: Failed to start Example startup script.-- Subject: Unit print_date.service has failed-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit print_date.service has failed.-- -- The result is failed.Mar 18 12:25:35 dario systemd[1]: print_date.service: Unit entered failed state.Mar 18 12:25:35 dario audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=print_dateMar 18 12:25:35 dario systemd[1]: print_date.service: Failed with result 'exit-code'.Mar 18 12:25:38 dario dbus-daemon[682]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.36' (uid=0 pid=6Mar 18 12:25:38 dario dbus-daemon[682]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Systemd Fedora 25 startup script permission denied
systemd;startup