Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Last active December 23, 2021 08:48
Show Gist options
  • Save wonderbeyond/6a7eb86ec55cbbc4fa7bc966e7896014 to your computer and use it in GitHub Desktop.
Save wonderbeyond/6a7eb86ec55cbbc4fa7bc966e7896014 to your computer and use it in GitHub Desktop.
Use systemd to autostart a watching script
[Unit]
Description=A Watcher
[Service]
ExecStart=/home/ubuntu/.pyenv/versions/minio/bin/auto-extractor -d /var/www/minio/ -x \\.minio\\.sys/
Restart=on-abort
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment