mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 20:38:06 -08:00
make install now makes dmodem-login.service, dmodem-login-authd.service and dmodem-login-ldapd.service from their samples, with the paths of BINDIR and CONF_DIR, and puts them in SYSTEMD_UNIT_DIR (/etc/systemd/system). It keeps a unit that is already there and enables none. install-freepbx and install-dialup use SYSTEMD_UNIT_DIR too. docs/running.md gives the steps after make install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRV8YPyMUdSM1QgsczH
23 lines
826 B
Plaintext
23 lines
826 B
Plaintext
# /etc/systemd/system/dmodem-login.service - dmodem-login -serve for app_dmodem's
|
|
# mode = unix profiles (dmodem.conf: path = /run/dmodem-login/dmodem-login.sock,
|
|
# header = yes); [server] socket_group = asterisk lets Asterisk connect
|
|
[Unit]
|
|
Description=dmodem-login: login and menu for dial-up callers
|
|
Documentation=https://github.com/D-Modem/login/blob/main/docs/running.md
|
|
After=network.target
|
|
Before=asterisk.service
|
|
|
|
[Service]
|
|
ExecStart=/usr/local/bin/dmodem-login -config /etc/asterisk/dmodem-login.conf -serve
|
|
RuntimeDirectory=dmodem-login
|
|
RuntimeDirectoryMode=0755
|
|
# daily_limit's state_dir = /var/lib/dmodem-login
|
|
StateDirectory=dmodem-login
|
|
Restart=on-failure
|
|
# root for auth = system (PAM's pam_unix) and run_as; otherwise a user of
|
|
# its own, e.g. User=dmodem-login
|
|
User=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|