1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
[Unit] Description=Open Network Operating System After=network-online.target After=local-fs.target [Service] Type=exec ExecStart=/opt/onos/bin/onos-service server ExecStop=/opt/onos/bin/onos-service stop Restart=always RestartSec=2s User=sdn Group=sdn [Install] WantedBy=multi-user.target # vim: set ft=systemd :