Skip to content
Oscar Javier Gentilezza Arenas edited this page Mar 31, 2017 · 4 revisions

Welcome to the ircgram++ wiki!

Configure as service

systemd as user

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

Versions

Actual version is 0.1.0-beta. For development version clone develop.

For others version see Changelog.

Clone this wiki locally