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
123
124
125
126
127
128
129
130
131
132
133
134
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] [soft-commits] [4311] services: Use no-block mode for service start/stop under systemd.
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B4311%5D%20services%3A%20Use%20no-block%20mode%0A%20for%20service%20start/stop%20under%20systemd.&In-Reply-To=%3C4F9D321C.7000605%40colin.guthr.ie%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="015021.html">
<LINK REL="Next" HREF="015017.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] [soft-commits] [4311] services: Use no-block mode for service start/stop under systemd.</H1>
<B>Colin Guthrie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B4311%5D%20services%3A%20Use%20no-block%20mode%0A%20for%20service%20start/stop%20under%20systemd.&In-Reply-To=%3C4F9D321C.7000605%40colin.guthr.ie%3E"
TITLE="[Mageia-dev] [soft-commits] [4311] services: Use no-block mode for service start/stop under systemd.">mageia at colin.guthr.ie
</A><BR>
<I>Sun Apr 29 14:20:44 CEST 2012</I>
<P><UL>
<LI>Previous message: <A HREF="015021.html">[Mageia-dev] [soft-commits] [4311] services: Use no-block mode for service start/stop under systemd.
</A></li>
<LI>Next message: <A HREF="015017.html">[Mageia-dev] freeze push: drakxtools & drakx-installer-stage2
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#15019">[ date ]</a>
<a href="thread.html#15019">[ thread ]</a>
<a href="subject.html#15019">[ subject ]</a>
<a href="author.html#15019">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>'Twas brillig, and Thierry Vignaud at 29/04/12 13:05 did gyre and gimble:
><i> On 29 April 2012 13:52, <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>> wrote:
</I>>><i> services: Use no-block mode for service start/stop under systemd.
</I>><i>
</I>><i> Please use "(function_name)" instead of "services:"
</I>><i>
</I>><i> eg: "(_run_action) use no-block mode for service start/stop under systemd"
</I>><i>
</I>><i> This makes history clearer
</I>
No worries.
>><i> This is perhaps the same issue as the 'cpufreq' bug on first boot,
</I>>><i> but by changing things to use systemctl directly, I have inadvertantly
</I>>><i> bypased the solution and reintroduced the bug.
</I>>><i>
</I>>><i> As there is likely no reason to block, we will simply use no-block mode
</I>>><i> unconditionally. Longer term, we may need to decide under what context
</I>>><i> we are restarting/starting a given service (i.e. in an interactive GUI
</I>>><i> vs from a script) and use the appropriate mode with appropriate user
</I>>><i> feedback.
</I>><i>
</I>><i> For the record:
</I>><i> - $::isInstall is set in the installer
</I>><i> - $::isStandalone is set in programs that load the standalone.pm module
</I>><i> (aka: "use standalone;")
</I>><i> eg: service_harddrake
</I>
OK, so using $::isStandalone could work here.
>><i> <A HREF="https://bugs.mageia.org/show_bug.cgi?id=4439">https://bugs.mageia.org/show_bug.cgi?id=4439</A>
</I>><i>
</I>><i> Also please use "mga#XXXX" instead of full URL.
</I>><i> Simpler, faster to read, and it's independent of any
</I>><i> URL change
</I>
I tend to (try to) use mga# format in package changelogs, but full urls
in svn/git commits for easy clicking. But really, keyword bookmarks
should make shortened versions almost as useful.
It would be quite nice if my shell detected "keywords" replacements like
it does URLs... so it could detect mga#123, fdo#123, rhbz#123 bgo#123,
bko#123, lp#123 style formats and allowed you to "Open URL" on those too
:<i>D Might have to look at that at some point as it would certainly have
</I>geek kudos :)
Col
--
Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
Day Job:
Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="015021.html">[Mageia-dev] [soft-commits] [4311] services: Use no-block mode for service start/stop under systemd.
</A></li>
<LI>Next message: <A HREF="015017.html">[Mageia-dev] freeze push: drakxtools & drakx-installer-stage2
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#15019">[ date ]</a>
<a href="thread.html#15019">[ thread ]</a>
<a href="subject.html#15019">[ subject ]</a>
<a href="author.html#15019">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|