start after network availability

This commit is contained in:
badaix 2015-08-13 23:11:46 +02:00
parent a88e218d91
commit 7237ea6b28
4 changed files with 14 additions and 22 deletions

View file

@ -1,9 +1,9 @@
[Unit]
Description=Snapclient
Description=SnapClient
After=network.target
[Service]
ExecStart=/usr/sbin/snapclient
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View file

@ -1,9 +1,9 @@
[Unit]
Description=Snapserver
Description=SnapServer
After=network.target
[Service]
ExecStart=/usr/sbin/snapserver
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View file

@ -1,19 +1,15 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: snapclient
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
# Short-Description: SnapClient initscript
# Description: SnapClient - SnapCast client
### END INIT INFO
# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.
# Author: Johannes Pohl <johannes.pohl@badaix.de>
# Do NOT "set -e"

View file

@ -1,19 +1,15 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: snapserver
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
# Short-Description: SnapServer initscript
# Description: SnapServer - SnapCast server
### END INIT INFO
# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.
# Author: Johannes Pohl <johannes.pohl@badaix.de>
# Do NOT "set -e"