Skip to content

Instantly share code, notes, and snippets.

@davidlares
Created March 20, 2020 00:30
Show Gist options
  • Save davidlares/6bc052d4ef052cd8858416a1640d6464 to your computer and use it in GitHub Desktop.
Save davidlares/6bc052d4ef052cd8858416a1640d6464 to your computer and use it in GitHub Desktop.
A basic Linux SystemD-based manifest file for describing OS services
[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
#!/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