aboutsummaryrefslogtreecommitdiff
path: root/system/etc/init.d/killi3
diff options
context:
space:
mode:
Diffstat (limited to 'system/etc/init.d/killi3')
-rwxr-xr-xsystem/etc/init.d/killi313
1 files changed, 13 insertions, 0 deletions
diff --git a/system/etc/init.d/killi3 b/system/etc/init.d/killi3
new file mode 100755
index 0000000..1fa83aa
--- /dev/null
+++ b/system/etc/init.d/killi3
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ before killprocs
+}
+
+start() {
+ for socket in `find /run/user/*/i3 -name ipc-socket*`; do
+ i3-msg -s $socket exit
+ done
+}