Created
March 20, 2020 00:30
-
-
Save davidlares/6bc052d4ef052cd8858416a1640d6464 to your computer and use it in GitHub Desktop.
A basic Linux SystemD-based manifest file for describing OS services
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
[Unit] | |
Description=Daemon for creating a txt file in a specified user | |
After=network.target | |
[Service] | |
User=root | |
ExecStart=/home/david/service_folder/file_creation.sh | |
[Install] | |
Wantedby=multi-user.target |
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
#!/bin/bash | |
touch /home/david/service.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment