Skip to content

Instantly share code, notes, and snippets.

@danpicton
Created April 24, 2019 19:29
Show Gist options
  • Save danpicton/bdc2c30c13dd6006f83677746ca151bc to your computer and use it in GitHub Desktop.
Save danpicton/bdc2c30c13dd6006f83677746ca151bc to your computer and use it in GitHub Desktop.
systemd service for Raspbian Stretch Lite
### BEGIN INIT INFO
# Provides: fluentd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
[Unit]
Description=fluentd logger
[Service]
Type=forking
User=dan
ExecStart=/usr/local/bin/fluentd --no-supervisor --config /path/to/fluent.conf --log /path/to/fluent.log -v
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment