
System Services
===============


Rocky Linux 9.2, Ubuntu 22.04
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To enable the service and have it start on boot, use: :command:`systemctl enable jetstream-server`

To start the service manually (and immediately), use: :command:`systemctl start jetstream-server`

For example:

.. code-block:: shell-session

   admin@server-host# systemctl enable jetstream-server
   Created symlink from ...
   admin@server-host# systemctl start jetstream-server

To verify if the processes are running, you can use the :command:`systemctl status` command. Under normal circumstances, the command should report that the process is ``active(running)`` under the ``Active`` heading. For example:

.. code-block:: shell-session

   admin@server-host# systemctl status jetstream-server
   ● jetstream-server.service - JetStream server service
   Loaded: loaded (/usr/lib/systemd/system/jetstream-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-09-22 17:35:44 EDT; 17h ago
   Main PID: 2857 (jetstream)
   CGroup: /system.slice/jetstream-server.service
   ├─2857 /usr/local/bin/jetstream server @/etc/jetstream-server.rsp
   └─2858 /usr/local/bin/jetstream server @/etc/jetstream-server.rsp

To restart the service, use: :command:`systemctl restart jetstream-server`

To stop the service, use :command:`systemctl stop jetstream-server`

To disable the service, use :command:`systemctl disable jetstream-server`


macOS
~~~~~

The JetStream Server service is enabled automatically after installation.

To disable the service, use :command:`launchctl disable system/io.gojetstream.jetstream-server`

To re-enable the service and have it start on boot, use: :command:`launchctl enable system/io.gojetstream.jetstream-server`

Please note that on macOS, disabling a service will not stop it. In order to stop it, you will need to unload it from launchctl.

To unload the service from launchctl: :command:`launchctl bootout system /usr/local/jetstream/etc/io.gojetstream.jetstream-server.plist`

To load it back, use: :command:`launchctl bootstrap system /usr/local/jetstream/etc/io.gojetstream.jetstream-server.plist`

To restart the service, use: :command:`launchctl kickstart -k system/io.gojetstream.jetstream-server`