Skip to content

Instantly share code, notes, and snippets.

@Mouad-BGD
Created June 4, 2012 14:21
Show Gist options
  • Select an option

  • Save Mouad-BGD/2868701 to your computer and use it in GitHub Desktop.

Select an option

Save Mouad-BGD/2868701 to your computer and use it in GitHub Desktop.
manages services in linux
systemctl start mysqld.service
systemctl stop mysqld.service
systemctl enable mysqld.service Enable the service over reboots (which just sets up some symlinks in the relevant dirs). same as chkconfig mysqld on
systemctl disable mysqld.service
systemctl status mysqld.service
If you want to use the service commands they should still work as well:
service mysqld start
service mysqld stop
chkconfig mysqld on
chkconfig mysqld off
more info about systemctl
http://0pointer.de/blog/projects/systemd-for-admins-1.html
http://0pointer.de/blog/projects/systemd-for-admins-2.html
http://0pointer.de/blog/projects/systemd-for-admins-3.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment