13 Commits

Author SHA1 Message Date
anntnzrb
e78420475e Use SIGTERM instead of SIGKILL
After proper research, `SIGKILL` should be prevented if possible;
Use `SIGTERM` instead

Source:
[In what order should I send signals to gracefully shutdown processes?](https://stackoverflow.com/a/37692419)
2020-08-04 12:56:25 -05:00
anntnzrb
636c35a126 Use pkill instead of killall
The `killall` command doesn't come shipped in all distributions (Void
Linux as an example), on the other hand `pkill` does.

Unsure what the exact intention on each call is but the `-9` signal can be
replaced with `-x` if the intention is not to end all instances.

Also note that I left `pkill -x Xorg` without the `-9` signal because
for some reason it won't function as expected and end up halting the
system (at least on Void Linux).
2020-07-31 12:25:28 -05:00
Luke Smith
615e8aef3a
fix 2020-06-22 12:09:52 -04:00
JameyBear
f820ccf4dd
Shellcheck (#676)
Co-authored-by: WhispersOfJ <kaotiks@gmail.com>
2020-06-01 15:29:57 -04:00
Luke Smith
e9b0b5613b
fix 2020-05-30 19:02:51 -04:00
Kian Kasad
3222354d50
make use of setsid(1)'s -f flag (#652)
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
2020-05-30 17:01:18 -04:00
Kian Kasad
6577acae89
replace tr '\n' 'CHAR' with paste -sd 'CHAR' (#625) 2020-05-09 19:32:56 -04:00
Luke Smith
1669b3c2b9
feedback and autoconfig if single screen 2020-04-20 16:48:32 -04:00
Luke Smith
080365dd22
pgrep is a little slow, slower than ps | grep 2020-04-11 10:03:33 -04:00
Luke Smith
2b5df860de
#!/bin/sh shebang. newline after universalized. 2020-02-08 18:43:37 -05:00
Luke Smith
1bca65bfc2
portable shebang 2019-08-18 12:28:11 -04:00
Luke Smith
9391af624c
dox 2019-06-01 10:53:34 -04:00
Luke Smith
c6e69e9642 massive cleanup 2019-05-19 20:05:14 -04:00