Browse Source

Create is_active.sh

A script for checking whether zapret systemctl is running
pull/1478/head
mint_tube 2 months ago
committed by GitHub
parent
commit
fbf054c6d5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      is_active.sh

7
is_active.sh

@ -0,0 +1,7 @@
#!/bin/sh
if [ $(systemctl is-active zapret) = 'active' ]; then
echo 'zapret: on'
else
echo 'zapret: off'
fi
Loading…
Cancel
Save