OSDN Git Service

New service earlyoom
authorlinuxer <linuxer@artixlinux.org>
Mon, 27 Sep 2021 13:40:03 +0000 (16:40 +0300)
committerlinuxer <linuxer@artixlinux.org>
Mon, 27 Sep 2021 13:40:03 +0000 (16:40 +0300)
usr/share/66/service/earlyoom [new file with mode: 0644]

diff --git a/usr/share/66/service/earlyoom b/usr/share/66/service/earlyoom
new file mode 100644 (file)
index 0000000..6865fbd
--- /dev/null
@@ -0,0 +1,14 @@
+linuxer, [27.09.21 16:11]
+[main]
+@type = classic
+@version = 0.0.1
+@description = "earlyoom daemon service"
+@user = (root)
+
+[start]
+@execute = ( execl-cmdline -s { earlyoom ${cmd_args} } )
+
+[environment]
+# Using environmental variables here instead of the default config file (/etc/default/earlyoom)
+# Please consult the manual for more switches
+cmd_args=!-d -r 3600 -n --avoid '(^|/)(s6-svscan|Xorg|sshd)$'