olsr2 simple daemon
This commit is contained in:
parent
9bd45f495b
commit
9e2d2df552
|
@ -701,12 +701,9 @@ EOF
|
|||
echo 'After=network.target' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo '' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo '[Service]' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'Type=forking' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'User=root' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'Group=root' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'ExecStart=/usr/local/sbin/olsrd2_static wlan0' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'ExecStop=/usr/bin/kill -15 $MAINPID' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'PIDFile=/var/run/olsr2/pid' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo 'Restart=on-failure' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo '' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
echo '[Install]' >> $rootdir/etc/systemd/system/olsr2.service
|
||||
|
|
Loading…
Reference in New Issue