Debian - InitScript - "不要设置-e"在/etc/init.d/skeleton中

时间:2016-06-24 10:08:38

标签: bash debian init.d lsb

我想知道为什么"不要设置-e"在/etc/init.d/skeleton存在,因为我认为这总是很好的做法。

#! /bin/sh
### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

# Do NOT "set -e"

Debian wiki推荐它(https://wiki.debian.org/LSBInitScripts/StatusSupport)所以我不知道该怎么做。

0 个答案:

没有答案