Skip to content

Commit 4a2ea5b

Browse files
committed
Merge pull request #124 from mtomaschewski/cleanup
systemd: do not install wicked@.service example
2 parents 2e29aea + ccb4b26 commit 4a2ea5b

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

etc/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ dbus_config_DATA = \
2525

2626
systemd_unit_files = \
2727
systemd/wicked.service \
28-
systemd/wicked@.service \
2928
systemd/wickedd.service \
3029
systemd/wickedd-auto4.service \
3130
systemd/wickedd-dhcp4.service \

etc/systemd/wicked@.service.in

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1+
#
2+
# This is a template example intended to implement
3+
# a multi-stage network start.
4+
#
15
[Unit]
2-
Description=wicked managed network interface %i
6+
Description=wicked managed network in stage %i
37
Requisite=wickedd.service
4-
PartOf=wicked.service
5-
BindsTo=sys-subsystem-net-devices-%i.device
8+
#Wants=network.target
9+
#Before=network.target
10+
After=wickedd.service
611

712
[Service]
813
Type=oneshot
914
RemainAfterExit=yes
1015
LimitCORE=infinity
1116
EnvironmentFile=-/etc/sysconfig/network/config
12-
ExecStart=@wicked_sbindir@/wicked $WICKED_DEBUG_PARAM ifup $WICKED_IFUP_PARAM %i
17+
ExecStart=@wicked_sbindir@/wicked $WICKED_DEBUG_PARAM ifup --boot-stage %i -- all
18+
ExecStop=@wicked_sbindir@/wicked $WICKED_DEBUG_PARAM ifdown --boot-stage %i -- all
19+
20+
[Install]
21+
Also=wickedd.service
22+
#WantedBy=some.target
1323

wicked.spec.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ fi
274274
%_unitdir/wickedd-dhcp6.service
275275
%_unitdir/wickedd-nanny.service
276276
%_unitdir/wickedd.service
277-
%_unitdir/wicked@.service
278277
%_unitdir/wicked.service
279278
%_sbindir/ifup
280279
%if "%_sbindir" != "/sbin"

0 commit comments

Comments
 (0)