summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120625/008037.html
blob: 7d0b6641aa5f6dce989673b762684c2cc49fe779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-discuss] systemd and faxgetty
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20systemd%20and%20faxgetty&In-Reply-To=%3C4FE8D1EF.7030808%40whitby-jr.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="008023.html">
   
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-discuss] systemd and faxgetty</H1>
    <B>Jim Whitby</B> 
    <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20systemd%20and%20faxgetty&In-Reply-To=%3C4FE8D1EF.7030808%40whitby-jr.org%3E"
       TITLE="[Mageia-discuss] systemd and faxgetty">jim at whitby-jr.org
       </A><BR>
    <I>Mon Jun 25 23:02:39 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="008023.html">[Mageia-discuss] Problems with Local Mail
</A></li>
        
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8037">[ date ]</a>
              <a href="thread.html#8037">[ thread ]</a>
              <a href="subject.html#8037">[ subject ]</a>
              <a href="author.html#8037">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 06/21/2012 10:18 PM, Jim Whitby wrote:
&lt;snip&gt;

I have managed to put together the files needed for hylafax, probably 
not optimal, but working.
The server file ( hylafax-server.service) is placed in etc/systemd/system.
Contains:

[Unit]
Description=Daemon for hylafax server
After=syslog.target

[Service]
ExecStart=/usr/sbin/faxq
Type=forking

[Install]
WantedBy=multi-user.target


A template file ( <A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">faxgetty at .service</A> ) is linked to 
/etc/systemd/system/<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">faxgetty at ttyS0.service.</A>
This will start a faxgetty on ttyS0 as a daemon and restart as needed.
If I need another fax getty on ttyS1 then I just create a new link with 
the name S1 instead of S0.

The faxgetty (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">faxgetty at .service</A>) file is in /lib/systemd/system
Contains:

[Unit]
Description=Fax Getty on %I
BindTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes

[Service]
ExecStart=-/usr/sbin/faxgetty  %I
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
KillMode=process
IgnoreSIGPIPE=no

# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP

I'm sure some of the above is not needed, but until someone who knows 
more than me explains it, I'll leave it alone.


-- 
Programmers used to batch environments may find it hard to live without
giant listings; we would find it hard to use them.
		-- D.M. Ritchie
----------------------
Mageia release 2 (Official) for x86_64
3.3.6-desktop-2.mga2 x86_64
----------------------

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="008023.html">[Mageia-discuss] Problems with Local Mail
</A></li>
	
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8037">[ date ]</a>
              <a href="thread.html#8037">[ thread ]</a>
              <a href="subject.html#8037">[ subject ]</a>
              <a href="author.html#8037">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
mailing list</a><br>
</body></html>