changeset 2314:b98ca7669c57

Managing services.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Mon, 24 Dec 2018 01:34:35 +0200
parents ab4d0f12baa6
children 51097a1f0381
files systemd.rst
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/systemd.rst	Mon Dec 24 01:34:35 2018 +0200
@@ -0,0 +1,24 @@
+
+=========
+ Systemd
+=========
+
+Managing services
+=================
+
+Display service details/status::
+
+  $ sudo systemctl show   my.service
+  $ sudo systemctl status my.service
+
+Start/stop service::
+
+  $ sudo systemctl start   repricer-server.service
+  $ sudo systemctl stop    repricer-server.service
+  $ sudo systemctl restart repricer-server.service
+
+Enabling/disabling service::
+
+  $ sudo systemctl enable  my.service
+  $ sudo systemctl disable my.service
+