-
Notifications
You must be signed in to change notification settings - Fork 7
Home
This is new feature in a next release v0.1.8, to test this feature see v0.1.8 with systemd.
In version 0.1.x ircgram uses the user's home to store the configuration and channels information, in version 0.2.x and follow can use the /etc directory. In the meantime, we go to create the unit as user service.
You can start all bridges at the same time, with the same unit file, or manage each bridge taking advantage of the --only option.
To manage all bridges with a simple unit, we need to create the file: ~/.local/share/systemd/user/ircgrampp.service (The path may not exist), with te follow content:
[Unit]
Description=Telegram <-> IRC bridge
[Service]
TimeoutStartSec=5
Restart=always
Environment="DEBUG='session,bridge'"
ExecStart=/usr/bin/ircgrampp start
[Install]
WantedBy=default.target
To start all bridges execute:
$ systemctl --user start ircgrampp
And to enable:
$ systemctl --user enable ircgrampp
The other option is make a service by each bridge, and manage the bridges with systemd, we need to do other file called ~/.local/share/systemd/user/ircgrampp@.service (notice the @), with the follow content:
[Unit]
Description=Telegram <-> IRC bridge for %i
[Service]
TimeoutStartSec=5
Restart=always
Environment="DEBUG='session,bridge'"
ExecStart=/usr/bin/ircgrampp start --only %i
[Install]
WantedBy=default.target
In this case, we can control manually each bridge starting service as:
$ systemctl --user start ircgrampp@bridgename
Actual version is 0.1.0-beta. For development version clone develop.
For others version see Changelog.
