diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 9e2cb887..baa64abd 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -2525,6 +2525,16 @@ OpenEdge ABL: tm_scope: source.abl ace_mode: text +OpenRC runscript: + type: programming + group: Shell + aliases: + - openrc + interpreters: + - openrc-run + tm_scope: source.shell + ace_mode: sh + OpenSCAD: type: programming extensions: diff --git a/samples/OpenRC runscript/acpid b/samples/OpenRC runscript/acpid new file mode 100644 index 00000000..0a952140 --- /dev/null +++ b/samples/OpenRC runscript/acpid @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +description="Daemon for Advanced Configuration and Power Interface" + +extra_started_commands="reload" +command="/usr/sbin/acpid" +command_args="$ACPID_ARGS" +start_stop_daemon_args="--quiet" + +depend() { + need localmount + use logger +} + +reload() { + ebegin "Reloading acpid configuration" + start-stop-daemon --exec $command --signal HUP + eend $? +}