Rename MINIX service(8) to minix-service(8)

IMPORTANT: this change has a docs/UPDATING entry!

This rename is unfortunately necessary because NetBSD has decided to
create its own service(8) utility, and we will want to import theirs
as well.  The two can obviously not coexist.

Also move ours from /bin to /sbin, as it is a superuser-only utility.

Change-Id: Ic6e46ffb3a84b4747d2fdcb0d74e62dbea065039
This commit is contained in:
David van Moolenbroek
2017-02-22 17:16:21 +00:00
parent bf5536d653
commit c58da9fbc3
59 changed files with 205 additions and 181 deletions
+5 -5
View File
@@ -46,7 +46,7 @@ up()
service=$1
shift
service $opt up /service/$service "$@"
minix-service $opt up /service/$service "$@"
}
edit()
@@ -72,7 +72,7 @@ edit()
if [ ! -x $binlocation ]
then binlocation=/sbin/$service
fi
service $opt edit $binlocation -label $service "$@"
minix-service $opt edit $binlocation -label $service "$@"
}
while getopts 'saf' opt
@@ -174,7 +174,7 @@ autoboot|start)
rootline=`cat /etc/mtab | grep "on / "`
rootfs=fs_`echo "$rootline" | cut -d' ' -f1 | cut -d'/' -f3`
roottype=`echo "$rootline" | cut -d' ' -f5`
service -c edit /service/$roottype -label $rootfs
minix-service -c edit /service/$roottype -label $rootfs
fi
if [ "$sflag" ]
@@ -224,11 +224,11 @@ down|stop)
if [ -x /service/usbd ]
then
service down usbd
minix-service down usbd
fi
# Tell RS server we're going down.
service shutdown
minix-service shutdown
;;
esac