startup.sh 327 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. #
  3. # JimV-C
  4. #
  5. # Copyright (C) 2017 JimV <james.iter.cn@gmail.com>
  6. #
  7. # Author: James Iter <james.iter.cn@gmail.com>
  8. #
  9. # Start up the JimV-C.
  10. #
  11. id www >& /dev/null
  12. if [ $? -ne 0 ]; then
  13. echo "Please install JimV-C before."
  14. exit 1
  15. fi
  16. systemctl start jimvc.service
  17. systemctl status jimvc.service -l