Which installed package provides
/sbin/shutdown on my system?
$ dpkg -S /sbin/shutdown
Which package in the distribution provides
/sbin/shutdown? Install the
apt-file package and run
apt-file update if necessary, then
$ apt-file search /sbin/shutdown
To download the source (if you're using the default init system SysVinit):
apt-get source sysvinit
This is probably not the place to configure desktop notifications though. Configuring the boot and shutdown process is typically done through scripts in
/etc/init.d. Link a script in
/etc/rc0.d to have it executed on shutdown and in
/etc/rc6.d to have it executed before rebooting; see the policy manual for more information. Desktop notifications go through dbus.