Hi
Please help me.
I have openSUSE 11.3 x64, dial-in server, with the following settings:
/etc/mgetty+sendfax/mgetty.config
debug 4
speed 57600
port ttyACM0
debug 4
data-only y
init-chat “” \d\d\d+++\d\dATZ&K0&C1&D2 OK
/etc/mgetty+sendfax/login.config
/AutoPPP/ - a_ppp /usr/sbin/pppd -chap +pap login debug
-
- - /bin/login @
/etc/mgetty+sendfax/dialin.config
disallow all other calls
#!all
all
/etc/ppp/options
38400
crtscts
modem
auth
lock
asyncmap 0
debug
kdebug 7
novj
novjccomp
lcp-echo-interval 30
lcp-echo-failure 0
lcp-restart 2
lcp-max-configure 30
refuse-chap
require-pap
nodetach
/etc/ppp/options.pptp
require-mppe
/etc/ppp/options.ttyACM0
192.168.0.43:192.168.0.44
netmask 255.255.255.0
modem
idle 2400
/etc/ppp/pap-secrets
myusername linux mypass64 “*”
/etc/inittab
10:2345:respawn:/usr/sbin/mgetty -n 1 -D /dev/ttyACM0
This is work is fine !!!
I installed the openSUSE 12.2 x64 with the same settings, except
instead of “inittab” “systemd” setting:
/lib/systemd/system/mgettyAM0.service
[Unit]
Description=mgetty start daemon
After=network.target
[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStart=/usr/sbin/mgetty -n 1 -D /dev/ttyACM0
TimeoutSec=0
[Install]
WantedBy=multi-user.target
#systemctl enable mgettyACM0.service
restart system, but not work !!!
systemctl list-units -t service : OK mgettyACM0.service loaded active running
/var/log/mgetty.ttyACM0
10/16 20:47:03 CM0 mgetty: interim release 1.1.36-Jun15
10/16 20:47:03 CM0 check for lockfiles
10/16 20:47:03 CM0 locking the line
10/16 20:47:04 CM0 lowering DTR to reset Modem
10/16 20:47:04 CM0 send: \d\d\d+++\d\dATZ&K0&C1&D2[0d]
10/16 20:47:07 CM0 waiting for OK'' ** found ** 10/16 20:47:08 CM0 waiting... 10/16 20:47:46 CM0 wfr: waiting for
RING’’
10/16 20:47:46 CM0 send: ATA[0d]
10/16 20:47:46 CM0 waiting for CONNECT'' ** found ** 10/16 20:48:05 CM0 send: 10/16 20:48:05 CM0 waiting for
_’’ ** found **
10/16 20:48:38 ##### failed dev=ttyACM0, pid=5061, got signal 1, exiting
when restart systemd:
systemctl stop mgettyACM0.service
systemctl daemon-reload
systemctl start mgettyACM0.service
systemctl daemon-reload
/var/log/messages containing this :
Oct 16 20:34:49 linux systemd[1]: mgettyACM0.service: main process exited, code=exited, status=10
Oct 16 20:34:49 linux systemd[1]: Unit mgettyACM0.service entered failed state.
Oct 16 20:34:49 linux systemd[1]: Reloading.
Any idea ? thanx