Skip to content

Commit

Permalink
Add yppasswd.service and ypserv.service
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Feb 11, 2020
1 parent 1be35b6 commit e589311
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ install_data misc_systemd_units/startup-tags.service "$DESTDIR$systemdunitdi
install_data misc_systemd_units/startup-hostname.service "$DESTDIR$systemdunitdir/startup-hostname.service"
install_data misc_systemd_units/unbound.service "$DESTDIR$systemdunitdir/unbound.service"
install_data misc_systemd_units/xaruba.service "$DESTDIR$systemdunitdir/xaruba.service"
install_data misc_systemd_units/yppasswd.service "$DESTDIR$systemdunitdir/yppasswd.service"
install_data misc_systemd_units/ypserv.service "$DESTDIR$systemdunitdir/ypserv.service"
install_exec mkmotd/mkmotd.pl "$DESTDIR$usr_sbindir/mkmotd.pl"
install_data mkmotd/motd.service "$DESTDIR$systemdunitdir/motd.service"
install_exec mxgrub/mxgrub "$DESTDIR$usr_sbindir/mxgrub"
Expand Down
14 changes: 14 additions & 0 deletions misc_systemd_units/yppasswd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
After=network.service gateway.service mxmount.service automount.service

Wants=startup-hostname.service
After=startup-hostname.service
ConditionPathExists=/node/startup-hostname/wtf

[Service]
Type=forking
ExecStart=/package/nis/sbin/rpc.yppasswdd -D /package/nis/src -e chsh

[Install]
WantedBy=network.target

18 changes: 18 additions & 0 deletions misc_systemd_units/ypserv.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
After=network.service gateway.service mxmount.service automount.service
Before=network.target

Wants=startup-hostname.service
After=startup-hostname.service
ConditionPathExists=/node/startup-hostname/wtf

[Service]
Type=forking
Restart=always
ExecStartPre=-/sbin/ip addr add 141.14.31.96/20 dev net03
ExecStart=/package/nis/sbin/ypserv
ExecStopPost=-/sbin/ip addr del 141.14.31.96/20 dev net03

[Install]
WantedBy=network.target

0 comments on commit e589311

Please sign in to comment.