+2006-06-21 Guillem Jover <guillem@debian.org>
+
+ * utils/start-stop-daemon.c (umask_value): New variable.
+ (do_help): Print information about the new '--umask' option.
+ (parse_umask): New function.
+ (parse_options): Parse the new option using parse_umask.
+ (main): Set umask, and do not set for the background case if we set
+ it previously.
+
2006-06-21 Guillem Jover <guillem@debian.org>
* scripts/controllib.pl (usageerr): Do not mark "%s: %s" for
backward compatibility information and give some examples.
Thanks for the initial suggestions to Junichi Uekawa. Closes: #370830
* Modified some strings to be able to merge them in the .pot files.
+ * Add new '--umask' option to start-stop-daemon. Closes: #368003
[ Frank Lichtenheld ]
* dpkg-source issued spurious warnings about fields defined with
\fB\-N\fP|\fB\-\-nicelevel\fP \fIint\fP
This alters the priority of the process before starting it.
.TP
+\fB\-k\fP|\fB\-\-umask\fP \fImask\fP
+This sets the umask of the process before starting it.
+.TP
.BR \-m | \-\-make\-pidfile
Used when starting a program that does not create its own pid file. This
option will make
+2006-06-21 Guillem Jover <guillem@debian.org>
+
+ * C/start-stop-daemon.8: Document the new '--umask' option.
+ * po4a/start-stop-daemon.8/po/start-stop-daemon.8.pot: Regenerated.
+ Former completed translations become 63t2f.
+ * po4a/start-stop-daemon.8/po/*.po: Merge with pot file.
+
2006-06-20 Nicolas Francois <nicolas.francois@centraliens.net>
* po4a/*/po/*.pot: Regenerated.
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2005-07-03 15:04+0200\n"
"Last-Translator: Unknown translator\n"
"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
+#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<Signal>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Dies ändert die Priorität des Prozesses bevor er gestartet wird."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, fuzzy
msgid ""
"Used when starting a program that does not create its own pid file. This "
"Kombination mit der B<--background> Option sinnvoll."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr "Gibt ausführliche informative Meldungen aus."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr "Gibt Hilfeinformationen aus und beendet sich dann."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr "Gibt Versionsinformationen aus und beendet sich dann."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr "AUTOREN"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
"ukE<gt>."
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2005-07-03 15:04+0200\n"
"Last-Translator: Unknown translator\n"
"Language-Team: Spanish <debian-l10n-spanish@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<señal>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Altera la prioridad del proceso antes de empezarlo."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, fuzzy
msgid ""
"Used when starting a program that does not create its own pid file. This "
"solamente es útil cuando se combina con la opción B<--background .>"
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, fuzzy, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, fuzzy
msgid "Print verbose informational messages."
msgstr "Muestra mensajes informativos detallados."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, fuzzy, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, fuzzy
msgid "Print help information; then exit."
msgstr "Muestra la ayuda y luego termina."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, fuzzy, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
#, fuzzy
msgid "Print version information; then exit."
msgstr "Muestra la versión y luego termina."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, fuzzy, no-wrap
msgid "AUTHORS"
msgstr "AUTORES"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
#, fuzzy
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"una versión previa de Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
#, fuzzy
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
-"PO-Revision-Date: 2006-03-04 09:52+0100\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
+"PO-Revision-Date: 2006-06-21 17:21+0300\n"
"Last-Translator: Philippe Batailler <philippe.batailler@free.fr>\n"
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
"MIME-Version: 1.0\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
+#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<signal>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Cela modifie la priorité du processus avant qu'il ne soit lancé."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
msgid ""
"Used when starting a program that does not create its own pid file. This "
"option will make B<start-stop-daemon> create the file referenced with B<--"
"habituellement utile que combinée avec l'option B<--background.>"
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr "Affiche des messages prolixes en renseignements."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr "Affiche une aide et se termine."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr "Affiche le numéro de version et se termine."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr "AUTEURS"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
"d'une version faite par Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2005-07-03 15:04+0200\n"
"Last-Translator: Unknown translator\n"
"Language-Team: Japanese <debian-l10n-japanese@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<signal>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "¥×¥í¥»¥¹¤ò³«»Ï¤¹¤ëÁ°¤Ë¥×¥í¥»¥¹¤Î¥×¥é¥¤¥ª¥ê¥Æ¥£¤òÊѹ¹¤¹¤ë¡£"
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, fuzzy
msgid ""
"Used when starting a program that does not create its own pid file. This "
"¤Ë¤Î¤ßÍÍѤǤ¢¤ë¡£"
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, fuzzy, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, fuzzy
msgid "Print verbose informational messages."
msgstr "¾Ü¤·¤¤»²¹Í¾ðÊó¤ò½ÐÎϤ¹¤ë¡£"
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, fuzzy, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, fuzzy
msgid "Print help information; then exit."
msgstr "¥Ø¥ë¥×¾ðÊó¤ò½ÐÎϤ·¤Æ½ªÎ»¤¹¤ë¡£"
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, fuzzy, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
#, fuzzy
msgid "Print version information; then exit."
msgstr "¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤Æ½ªÎ»¤¹¤ë¡£"
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, fuzzy, no-wrap
msgid "AUTHORS"
msgstr "Ãø¼Ô"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
#, fuzzy
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"À®¡£"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
#, fuzzy
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
msgid ""
msgstr ""
"Project-Id-Version: dpkg 1.13.16\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2006-03-01 23:37+0100\n"
"Last-Translator: Robert Luberda <robert@debian.org>\n"
"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
+#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<sygna³>"
+
+# type: Plain text
+#
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Zmienia priorytet uruchamianego procesu."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
msgid ""
"Used when starting a program that does not create its own pid file. This "
"option will make B<start-stop-daemon> create the file referenced with B<--"
"B<--background>."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr "Wy¶wietlane s± dodatkowe komunikaty."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr "Wy¶wietlana jest krótka pomoc."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr "Wy¶wietlana jest informacja o wersji programu."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr "AUTORZY"
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
# type: Plain text
#
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2006-04-08 18:28+0300\n"
"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
+#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<сигнал>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Этот параметр перед запуском изменяет приоритет процесса."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
msgid ""
"Used when starting a program that does not create its own pid file. This "
"option will make B<start-stop-daemon> create the file referenced with B<--"
"использовании вместе с параметром B<--background>."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr "Выдавать подробные информационные сообщения."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr "Выдать подсказку и завершить работу."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr "Выдать информацию о версии и завершить работу."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr "АВТОРЫ"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
"на версии, сделанной Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
#, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr ""
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+msgid "This sets the umask of the process before starting it."
+msgstr ""
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
msgid ""
"Used when starting a program that does not create its own pid file. This "
"option will make B<start-stop-daemon> create the file referenced with "
msgstr ""
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr ""
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr ""
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr ""
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
msgstr ""
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
msgid ""
msgstr ""
"Project-Id-Version: dpkg man pages\n"
-"POT-Creation-Date: 2006-06-20 21:07+0200\n"
+"POT-Creation-Date: 2006-06-21 17:57+0300\n"
"PO-Revision-Date: 2006-06-11 20:34+0100\n"
"Last-Translator: Peter Karlsson <peterk@debian.org>\n"
"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n"
# type: TP
#: ../../../man/po4a/../C/start-stop-daemon.8:230
+#, fuzzy, no-wrap
+msgid "B<-k>|B<--umask> I<mask>"
+msgstr "B<-s>|B<--signal> I<signal>"
+
+# type: Plain text
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
+#, fuzzy
+msgid "This sets the umask of the process before starting it."
+msgstr "Detta ändrar prioriteten på processen innan den startas."
+
+# type: TP
+#: ../../../man/po4a/../C/start-stop-daemon.8:233
#, no-wrap
msgid "B<-m>|B<--make-pidfile>"
msgstr "B<-m>|B<--make-pidfile>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
msgid ""
"Used when starting a program that does not create its own pid file. This "
"option will make B<start-stop-daemon> create the file referenced with B<--"
"background>."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:245
+#: ../../../man/po4a/../C/start-stop-daemon.8:248
#, no-wrap
msgid "B<-v>|B<--verbose>"
msgstr "B<-v>|B<--verbose>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
msgid "Print verbose informational messages."
msgstr "Skriv ut pratsamma informationsmeddelanden."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:248
+#: ../../../man/po4a/../C/start-stop-daemon.8:251
#, no-wrap
msgid "B<-H>|B<--help>"
msgstr "B<-H>|B<--help>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
msgid "Print help information; then exit."
msgstr "Skriv ut hjälpinformation och avsluta sedan."
# type: TP
-#: ../../../man/po4a/../C/start-stop-daemon.8:251
+#: ../../../man/po4a/../C/start-stop-daemon.8:254
#, no-wrap
msgid "B<-V>|B<--version>"
msgstr "B<-V>|B<--version>"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:254
+#: ../../../man/po4a/../C/start-stop-daemon.8:257
msgid "Print version information; then exit."
msgstr "Skriv ut versionsinformation och avsluta sedan."
# type: SH
-#: ../../../man/po4a/../C/start-stop-daemon.8:255
+#: ../../../man/po4a/../C/start-stop-daemon.8:258
#, no-wrap
msgid "AUTHORS"
msgstr "FÖRFATTARE"
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:258
+#: ../../../man/po4a/../C/start-stop-daemon.8:261
msgid ""
"Marek Michalkiewicz E<lt>marekm@i17linuxb.ists.pwr.wroc.plE<gt> based on a "
"previous version by Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
"en tidigare version av Ian Jackson E<lt>ian@chiark.greenend.org.ukE<gt>."
# type: Plain text
-#: ../../../man/po4a/../C/start-stop-daemon.8:260
+#: ../../../man/po4a/../C/start-stop-daemon.8:263
msgid ""
"Manual page by Klee Dienes E<lt>klee@mit.eduE<gt>, partially reformatted by "
"Ian Jackson."
static const char *schedule_str = NULL;
static const char *progname = "";
static int nicelevel = 0;
+static int umask_value = -1;
static struct stat exec_stat;
#if defined(OSHURD)
" -r|--chroot <directory> chroot to <directory> before starting\n"
" -d|--chdir <directory> change to <directory> (default is /)\n"
" -N|--nicelevel <incr> add incr to the process's nice level\n"
+" -k|--umask <mask> change the umask to <mask> before starting\n"
" -b|--background force the process to detach\n"
" -m|--make-pidfile create the pidfile before starting\n"
" -R|--retry <schedule> check whether processes die, and retry\n"
return -1;
}
+static int
+parse_umask(const char *string, int *value_r)
+{
+ if (!string[0])
+ return -1;
+
+ errno = 0;
+ *value_r = strtoul(string, NULL, 0);
+ if (errno)
+ return -1;
+ else
+ return 0;
+}
+
static void
parse_schedule_item(const char *string, struct schedule_item *item) {
const char *after_hyph;
{ "exec", 1, NULL, 'x'},
{ "chuid", 1, NULL, 'c'},
{ "nicelevel", 1, NULL, 'N'},
+ { "umask", 1, NULL, 'k'},
{ "background", 0, NULL, 'b'},
{ "make-pidfile", 0, NULL, 'm'},
{ "retry", 1, NULL, 'R'},
{ "chdir", 1, NULL, 'd'},
{ NULL, 0, NULL, 0}
};
+ const char *umask_str = NULL;
int c;
for (;;) {
- c = getopt_long(argc, argv, "HKSVa:n:op:qr:s:tu:vx:c:N:bmR:g:d:",
+ c = getopt_long(argc, argv, "HKSVa:n:op:qr:s:tu:vx:c:N:k:bmR:g:d:",
longopts, (int *) 0);
if (c == -1)
break;
case 'N': /* --nice */
nicelevel = atoi(optarg);
break;
+ case 'k': /* --umask <mask> */
+ umask_str = optarg;
+ break;
case 'b': /* --background */
background = 1;
break;
parse_schedule(schedule_str);
}
+ if (umask_str != NULL) {
+ if (parse_umask(umask_str, &umask_value) != 0)
+ badusage("umask value must be a positive number");
+ }
+
if (start == stop)
badusage("need one of --start or --stop");
fatal("Unable to alter nice level by %i: %s", nicelevel,
strerror(errno));
}
+ if (umask_value >= 0)
+ umask(umask_value);
if (mpidfile && pidfile != NULL) { /* user wants _us_ to make the pidfile :) */
FILE *pidf = fopen(pidfile, "w");
pid_t pidt = getpid();
ioctl(tty_fd, TIOCNOTTY, 0);
close(tty_fd);
#endif
- umask(022); /* set a default for dumb programs */
+ if (umask_value < 0)
+ umask(022); /* set a default for dumb programs */
dup2(devnull_fd,0); /* stdin */
dup2(devnull_fd,1); /* stdout */
dup2(devnull_fd,2); /* stderr */