Advertisement
Guest User

Untitled

a guest
Oct 11th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. $service_status = `/etc/init.d/$v status`;
  2. echo $v;
  3. if (preg_match("/started/", $service_status))
  4.     $status = 'on';
  5. else
  6.     $status = 'off';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement