summaryrefslogtreecommitdiff
path: root/examples/rc.tini
blob: 02e7ec7fd6a87d9b184b5cf23afc5e3d97067ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/execlineb -P


# Write a message to /var/log/syslogd

foreground
{
  s6-ipcclient -l0 /dev/log
  fdmove 1 7
  s6-echo "/etc/rc.tini: shutdown requested"
}


# Shut down all services

s6-rc -da change