# Shutdown and Restart

This interface is used to control device shutdown and restart, or to exit the FIRERPA service itself.

```{attention}
FIRERPA is designed as a 24/7 background service; frequent startup or shutdown is not recommended.
```

## Shut Down System

This operation will power off the current device.

```python
d.shutdown()
```

## Restart System

This operation will restart the current device.

```python
d.reboot()
```

## Exit Service

This operation will cause the FIRERPA service itself to exit.

```python
d.exit()
```

If it is inconvenient to use the interface, you can execute the following command:

```bash
kill -SIGUSR2 $(cat ~/lamda.pid)
```

It may take more than ten seconds for the FIRERPA service to fully exit. Please do not execute this command consecutively multiple times.