Re: Anyone running hylafx with systemd - modem init/respawn OK?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Jun 3, 2012 at 5:11 AM, David C. Rankin
<drankinatty@xxxxxxxxxxxxxxxxxx> wrote:
>  But what about the init and respawn of faxgetty that was usually done through
> inittab?
>
> mo:35:respawn:/usr/lib/fax/faxgetty /dev/ttyS1

It would be done with a .service unit as well, similar to the existing
getty@.service and serial-getty@.service. I'm not sure why one wasn't
included with hylafax, but it should probably look like this:

[Unit]
Description=Faxgetty on %I
BindTo=dev-%i.service
After=dev-%i.service

[Service]
ExecStart=-/usr/lib/fax/faxgetty /dev/%I
Restart=always
; I'm not sure if the following are strictly necessary, but they
; are used by existing getty units.
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes

(Note: Untested. I don't actually have the hardware.)

-- 
Mantas Mikulėnas


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux