Don't need to clear utmp in rcboot.sh; dinit now does it.
authorDavin McCall <davmac@davmac.org>
Fri, 3 May 2019 10:25:15 +0000 (20:25 +1000)
committerDavin McCall <davmac@davmac.org>
Fri, 3 May 2019 10:25:15 +0000 (20:25 +1000)
doc/linux/services/rcboot.sh

index c59d052d4296ce221321180a125c7dce8b5ded2a..83360a714925c2cef096ab876fa1ad6f5461e79d 100755 (executable)
@@ -9,8 +9,7 @@ if [ "$1" != "stop" ]; then
   rm -rf /tmp/* /tmp/.[^.]* /tmp/..?*
   rm -rf /var/lock/* /var/lock/.[^.]* /var/lock/..?*
   rm -rf /var/run/* /var/run/.[^.]* /var/run/..?*
-  # Create (empty) utmp database
-  : > /var/run/utmp
+  # create state directories
   mkdir /var/run/dbus
 
   # Configure random number generator