Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $service_status = `/etc/init.d/$v status`;
- echo $v;
- if (preg_match("/started/", $service_status))
- $status = 'on';
- else
- $status = 'off';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement