Infos:
- Used Zammad version: 5.0x
- Used Zammad installation type: (source, package, docker-compose, …) I think package
- Operating system: ubuntu 20
- Browser + version: latest Firefox
Expected behavior:
- auto restart of zammad
Actual behavior:
I got a message after removing an object
Zammad need a restart!
Some system settings have changed, please restart all Zammad processes! If you want to do this automatically, set environment variable APP_RESTART_CMD=“/path/to/your_app_script.sh restart”.
OK so what user do I set this with my initial ubuntu user, root, zammad ???
Do I add the environment variable to a .profile file and again for which user
Steps to reproduce the behavior:
- I even looked it up in the search ===>https://community.zammad.org/t/set-environment-variable-app-restart-cmd-path-to-your-app-script-sh-restart/998
So I do believe that zammad is started via systemctl start zammad but I’m not 100% sure I know I have a stoped and tarted it with systemctl [start|stop|…] zammad and I think the install instruction did mention it
Any how the ticket show
f for example if zammad can be started with
systemctl start zammad
You’ll want to look at/etc/systemd/system/zammad.serviceor if that doesn’t exist/lib/systemd/system/zammad.serviceThen see if there’s a line like
EnvironmentFile=-/etc/default/zammadThen you would put
APP_RESTART_CMD="systemctl restart zammad"# or however you want to restart zammad
in/etc/default/zammadIf that line doesn’t exist you could add the full
EnvironmentFileline under[service]and create the/etc/default/zammadfile 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.
a cat /etc/systemd/system/zammad.service does NOT show a line line EnvironmentFile=-/etc/default/zammad
I do have a file /etc/default/zammad and it does have some variables in it so I guess I should add it there yes/no?