Moved to new slp format

This commit is contained in:
2020-08-16 17:16:48 -05:00
parent ef2972bf92
commit d15b57f91f
4 changed files with 8 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
This is the directory where the manifest, snapinfo,
and files.tar.gz files will be created. It is also
where the usher file should be placed if it is
required by the package. Any other files that need
to be included could also be placed here.
Executable
+53
View File
@@ -0,0 +1,53 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Advanced Configuration and Power Interface event daemon
### END INIT INFO
. /lib/lsb/init-functions
DAEMON=/usr/sbin/acpid
PIDFILE=/var/run/acpid.pid
case "$1" in
start)
log_init_msg "Starting ACPI event daemon"
start_daemon "$DAEMON" && log_success_msg || log_failure_msg
;;
stop)
log_init_msg "Stopping ACPI event daemon"
killproc -p "$PIDFILE" "$DAEMON" -TERM && log_success_msg || log_failure_msg
;;
reload)
log_init_msg "Reloading configuration for ACPI event daemon"
killproc -p "$PIDFILE" "$DAEMON" -HUP && log_success_msg || log_failure_msg
;;
restart)
$0 stop
$0 start
;;
status)
pid=$(pidofproc -p "$PIDFILE" "$DAEMON")
if [ "$?" -ne 0 ]; then
echo "ACPI event daemon not running"
else
echo "ACPI event daemon running with PID: $pid"
fi
;;
*)
echo "Usage: $0 [start|stop|reload|restart|status]"
exit 1
;;
esac
exit 0
+2
View File
@@ -0,0 +1,2 @@
event=button/power
action=/sbin/shutdown -t1 -a -h now