From 5466fcfd2f8a546f474252385406ccf96fd3b703 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 6 May 2016 22:39:42 +0200 Subject: [PATCH] Add support for OpenRC runscripts (#2935) --- lib/linguist/languages.yml | 10 ++++++++++ samples/OpenRC runscript/acpid | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 samples/OpenRC runscript/acpid 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 $? +}