Startup script in Fedora 19

In /etc/systemd/system/<x>.service:

[Unit]
Description=What the script will do

[Service]
Type=oneshot
ExecStart=/bin/sh -c ‘/full/path/to/script.sh’

[Install]
WantedBy=multi-user.target
EOF

Then systemctl enable <x>.service

Advertisements
%d bloggers like this: