Skip to content

Instantly share code, notes, and snippets.

@notesbytom
Last active April 19, 2021 16:54
Show Gist options
  • Save notesbytom/e2ac772a891c6d5d698103339333391e to your computer and use it in GitHub Desktop.
Save notesbytom/e2ac772a891c6d5d698103339333391e to your computer and use it in GitHub Desktop.
SmartFile FileHub systemd unit file for systemctl
# vim: set filetype=dosini:
# Custom systemd / systemctl unit file for SmartFile FileHub veridocker
# /etc/systemd/system/veridocker.service
# After adding or modifying this file run:
# systemctl daemon-reload
# To enable startup on boot:
# systemctl enable veridocker.service
# Starting or stopping the veridocker using systemctl
# systemctl start veridocker.service
# systemctl stop veridocker.service
[Unit]
Description=Veridocker_FileHub_Service_Manager
After=network.target data.mount
Requires=data.mount
[Service]
Type=oneshot
ExecStart=/usr/bin/veridocker -q -o start
ExecStop=/usr/bin/veridocker -q -o stop
ExecReload=/usr/bin/veridocker -q -o reload
RemainAfterExit=True
[Install]
WantedBy=default.target
@notesbytom
Copy link
Author

Start and Stop the SmartFile FileHub veridocker service(s) automatically when the system boots and shuts down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment