add service example

This commit is contained in:
Pierre Dubouilh 2021-11-07 20:21:20 +01:00 committed by Pierre Dubouilh
parent 4385249c94
commit de632f9ab7
2 changed files with 26 additions and 1 deletions

View file

@ -1,4 +1,20 @@
## docker
## run as a service
use the `service` file provided here to use as a systemd service.
```sh
# edit service file
# copy over our service, and start. Notice no sudo with systemctl command !
% mkdir -p ~/.config/systemd/user/
% cp service ~/.config/systemd/user/gossa.service
% systemctl --user start gossa
# enable at boot time
% systemctl --user start gossa
```
## run with docker
the master branch is automatically built and pushed to [dockerhub](https://hub.docker.com/r/pldubouilh/gossa) under `pldubouilh/gossa`.

9
support/service Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Gossa service for mytestfolder
# note: its better to use absolute paths here
[Service]
ExecStart=gossa /home/joe/mytestfolder
[Install]
WantedBy=multi-user.target