Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of systemd installation to README.md #1

Open
Areso opened this issue Mar 21, 2019 · 1 comment
Open

Add example of systemd installation to README.md #1

Areso opened this issue Mar 21, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Areso
Copy link
Owner

Areso commented Mar 21, 2019

Systemd editing

Create file /etc/systemd/system/my_script.service with following contents:

[Unit]
Description=My script that requires network
After=network.target

[Service]
Type=oneshot
ExecStart=/full/path/to/my_script.sh

[Install]
WantedBy=multi-user.target

Then execute:

sudo systemctl daemon-reload
sudo systemctl enable my_script

@Areso Areso added the enhancement New feature or request label Mar 21, 2019
@Areso Areso self-assigned this Mar 21, 2019
@Areso Areso changed the title Add example of systemd installation (somewhat later) Add example of systemd installation to README.md Mar 21, 2019
@Areso
Copy link
Owner Author

Areso commented Mar 21, 2019

Also, may be used:
supervisord, rc.local, s6.overlay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant