System Services

CentOS 7, Ubuntu 18.04

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

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

For example:

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 systemctl status command. Under normal circumstances, the command should report that the process is active(running) under the Active heading. For example:

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: systemctl restart jetstream-server

To stop the service, use systemctl stop jetstream-server

To disable the service, use systemctl disable jetstream-server

macOS

The JetStream Server service is enabled automatically after installation.

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

To re-enable the service and have it start on boot, use: 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: launchctl bootout system /usr/local/jetstream/etc/io.gojetstream.jetstream-server.plist

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

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