Skip to content

Instantly share code, notes, and snippets.

@paulofellix
Last active February 25, 2021 15:57
Show Gist options
  • Save paulofellix/3dcae8ddcdaec759dc308a91e0cb4611 to your computer and use it in GitHub Desktop.
Save paulofellix/3dcae8ddcdaec759dc308a91e0cb4611 to your computer and use it in GitHub Desktop.
[Sample Service RHEL] #linux #script
# vi /etc/systemd/system/sample.service
[Unit]
Description=Description for sample script goes here
After=network.target
[Service]
Type=simple
ExecStart=/var/tmp/test_script.sh
TimeoutStartSec=0
[Install]
WantedBy=default.target
# enable
# systemctl daemon-reload
# systemctl enable sample.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment