Originally posted by Farmer
View Post
It's this easy:
Code:
[Unit] Description=A description [Service] Type=oneshot ExecStart=/path/to/something RemainAfterExit=yes [Install] WantedBy=multi-user.target
- name that "foobar.service"
- copy "foobar.service" to "/etc/systemd/system/foobar.service"
- give it 644 permissions
- treat it like any other systemd service; "sudo systemctl start foobar.service" to run once; "sudo systemctl enable foobar.service" to start on boot; etc)
Code:
[Unit] Description=Apply WattmanGTK settings [Service] Type=oneshot ExecStart=/usr/local/bin/Set_WattmanGTK_Settings.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target
Comment