Skip to content

Instantly share code, notes, and snippets.

@strato190
Created March 1, 2017 15:26
Show Gist options
  • Save strato190/1d8081301740613f6e9dcd06273332ff to your computer and use it in GitHub Desktop.
Save strato190/1d8081301740613f6e9dcd06273332ff to your computer and use it in GitHub Desktop.
Systemd unit file for running snmpsim at background
[Unit]
Description=Snmp generator
After=network.target
[Service]
UMask=0000
Restart=always
KillSignal=SIGQUIT
User=snmpsim
ExecStart=/bin/sh -c "snmpsimd --data-dir=/opt/data --agent-udpv4-endpoint=0.0.0.0:1024"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment