about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-03-27 05:17:18 +0000
committerahriman <ahriman@falte.red>2019-03-27 05:17:18 +0000
commit2cf371dfd7246c980357e536b64079a603e15756 (patch)
tree8a3f6f1e18810c9e63c54698a72c250633cdb1cc
parent38f3b69c07ea9a9a73840693950c2a05271cc95e (diff)
downloadadmin-2cf371dfd7246c980357e536b64079a603e15756.tar.gz
simplified HUP for httpd in makeuser
-rwxr-xr-xbin/makeuser3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/makeuser b/bin/makeuser
index e4dc069..a0b6ff8 100755
--- a/bin/makeuser
+++ b/bin/makeuser
@@ -72,8 +72,7 @@ case $1 in
 # the main httpd config then gracefully
 # reload the httpd config
 	echo "include \"/etc/httpd/$1.conf\"" >> /etc/httpd-vusers.conf
-    httpdpid=`pgrep httpd | awk 'NR==1{print $1}'`
-    kill -HUP $httpdpid
+    pkill -HUP httpd
 
 # send welcome email
         sed -e "s/newusername/$1/g" /admin/misc/email.tmpl | doas -u admins mail -s "welcome to tilde.institute!" $2