# Set environment variable APP\_RESTART\_CMD="/path/to/your\_app\_script.sh restart"

**URL:** https://community.zammad.org/t/set-environment-variable-app-restart-cmd-path-to-your-app-script-sh-restart/998
**Category:** Technical assistance
**Created:** [July 19, 2018, 6:25pm UTC](https://community.zammad.org/t/set-environment-variable-app-restart-cmd-path-to-your-app-script-sh-restart/998 "2018-07-19T18:25:22Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![chesty](https://community.zammad.org/user_avatar/community.zammad.org/chesty/32/237_2.png) [@chesty](https://community.zammad.org/u/chesty)
#### Post date: [July 20, 2018, 2:46am UTC](https://community.zammad.org/t/set-environment-variable-app-restart-cmd-path-to-your-app-script-sh-restart/998/2 "2018-07-20T02:46:57Z")

</div>

it depends on how you installed zammad.

If for example if zammad can be started with `systemctl start zammad`  
You’ll want to look at `/etc/systemd/system/zammad.service` or if that doesn’t exist `/lib/systemd/system/zammad.service`

Then see if there’s a line like

`EnvironmentFile=-/etc/default/zammad`

Then you would put  
`APP_RESTART_CMD="systemctl restart zammad"` # or however you want to restart zammad  
in `/etc/default/zammad`

If that line doesn’t exist you could add the full `EnvironmentFile` line under `[service]` and create the `/etc/default/zammad` file or do whatever other way systemctl has provided to set environment variables.

I haven’t tested any of this, but if systemctl is how you start zammad, then that is where you set the environment variables.

---

_[View the full topic](https://community.zammad.org/t/set-environment-variable-app-restart-cmd-path-to-your-app-script-sh-restart/998)._
