Skip to content

andreeee/systemd-example-startup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

systemd-example-startup

example unit file to tell systemd to start a shell script at boot

Configure

Place the unit service file in /etc/systemd/system (or your systemd unit file search path if different) and the do the following:

systemctl enable example.service

In case your unit file is located located somewhere else, you may do the following: (I do not recommed this)

systemctl link /path/to/example.service

Do note that here you have to give the full path and not just the unit file name.

Take Note

  • Make sure your shell script is executable. (chmod +x)
  • Make sure your shell script begins with a sheband (#!/bin/bash)

About

example file to tell systemd to start a shell script at boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%