Last active
February 25, 2021 15:57
-
-
Save paulofellix/3dcae8ddcdaec759dc308a91e0cb4611 to your computer and use it in GitHub Desktop.
[Sample Service RHEL] #linux #script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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