# SystemCtl Usage

Below is a list of commonly used systemd commands.

If you are needing to configure a binary as a linux service, see this: [Ubuntu Service Creation](https://wiki.galaxydump.com/link/368)

### Reload Systemd Units

Each time you edit a systemd unit file, you must tell systemd to reload changes.  
To reload all systemd unit config files:

```bash
sudo systemctl daemon-reload
```

### Console Logs

Systemd logs all console output from running services.  
To get console logs from a service, do this:

```bash
sudo journalctl -u nginx.service
```

### Reload Unit Files

Tell systemd to reload unit files with this:

```bash
sudo systemctl daemon-reload
```

### Start a Service

Start the service with this:

```bash
sudo systemctl start servicename
```

### Check Service Status

Verify the service is running with this:

```bash
sudo systemctl status servicename
```

### Enable Service Start on Boot

To enable a service to start on boot, do this:

```bash
sudo systemctl enable servicename
```