summaryrefslogtreecommitdiff
path: root/sbin/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* MFC r362942: shutdown.8: Fix typoNiclas Zeising2020-07-121-1/+1
| | | | | | | Fix a typo in shutdown.8, use ',' instead of '.' when listing items. Notes: svn path=/stable/12/; revision=363120
* shutdown: Fix r327476 by adding initEitan Adler2018-01-021-1/+2
| | | | | | | | | | Initialize maybe_today. While here sort. PR: 32411 Additionally reported by: rgrimes, ian Notes: svn path=/head/; revision=327488
* shutdown: Assume absolute time is in the futureEitan Adler2018-01-012-4/+28
| | | | | | | | | | | | | | | | | | | | The original bug describes it best: When an absolute time is specified to shutdown, the program's behavior depends on whether that time has passed during the current calendar day. POLA would suggest that for shutdown, whose time argument is always supposed to be in the future, absolute times specified without a specific date should refer to the next occurrence of that time, rather than erroring out if that time has already passed during the current day. PR: 32411 Submitted by: wollman@khavrinen.lcs.mit.edu Submitted on: 2001-11-30 20:30:01 UTC Reviewed by: asmodai (at time of bug submission) Notes: svn path=/head/; revision=327476
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Add -c to the usage statements.Warner Losh2017-10-311-1/+1
| | | | | | | Submitted by: Maxim Konovalov Notes: svn path=/head/; revision=325206
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add power cycle support (-c) to shutdown.Warner Losh2017-10-252-11/+35
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324985
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* shutdown appeared as a standalone utility in 4.1BSD.Sevan Janiyan2016-10-031-4/+6
| | | | | | | | | | | | | http://mail-index.netbsd.org/source-changes-d/2016/09/13/msg008686.html http://mail-index.netbsd.org/source-changes-d/2016/09/14/msg008691.html PR: 212552 Approved by: bcr (mentor) Obtained from: NetBSD MFC after: 4 days Differential Revision: https://reviews.freebsd.org/D8105 Notes: svn path=/head/; revision=306617
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-3/+32
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | sync from headSimon J. Gerraty2013-04-121-1/+6
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync from headSimon J. Gerraty2012-11-041-3/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | sbin/shutdown: Support time units as in 'shutdown -r +5sec'Gleb Kurtsou2014-12-162-3/+32
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Units supported: s, sec, m, min, h, hour. Differential Revision: https://reviews.freebsd.org/D1272 Notes: svn path=/head/; revision=275818
* | | | Change file permissions for some setuid executables so they are "o+r".Neel Natu2014-08-211-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges. Reviewed by: delphij Discussed with: delphij, des CR: https://reviews.freebsd.org/D662 Notes: svn path=/head/; revision=270289
* | | Add simple example.Joel Dahl2013-03-191-1/+6
| |/ |/| | | | | Notes: svn path=/head/; revision=248535
* | Restore a piece of BSD history.Dag-Erling Smørgrav2012-08-011-3/+3
|/ | | | | | | | | PR: 169127 Submitted by: Ruben de Groot <ruben@hacktor.com> MFC after: 1 week Notes: svn path=/head/; revision=238968
* shutdown: Remove unnecessary 2-second delay.Jilles Tjoelker2012-05-231-1/+0
| | | | Notes: svn path=/head/; revision=235855
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-031-1/+1
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-1/+1
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* Remove trailing whitespace in the shutdown(8) manual.Glen Barber2011-07-141-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=223992
* Improvements to the shutdown(8) manual.Glen Barber2011-07-141-12/+14
| | | | | | | | | PR: 158807 Submitted by: arundel MFC after: 1 week Notes: svn path=/head/; revision=223991
* For compatibility with Linux and Solaris add poweroff(8).Pawel Jakub Dawidek2010-12-303-4/+39
| | | | | | | | | | | | | | It is implemented as a hard link to shutdown(8) and it is equivalent of: # shutdown -p now While I'm here put one line of usage into one line of C code so it is easier to grep(1) and separate unrelated code with empty line. MFC after: 2 weeks Notes: svn path=/head/; revision=216823
* Add missing `void' for functions without arguments.Ed Schouten2009-12-291-4/+4
| | | | | | | | While there, rename die_you_gravy_sucking_pig_dog() to something that's less moronic. Notes: svn path=/head/; revision=201180
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-2/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Static'ify internal methods and use prototype.Xin LI2009-09-281-20/+20
| | | | Notes: svn path=/head/; revision=197560
* Note that when shutdown is run without options, it will placeTom Rhodes2008-12-231-1/+7
| | | | | | | | | the system into single user mode at the time specified. PR: 129765 Notes: svn path=/head/; revision=186431
* Use new style declarations instead of K&R ones.Xin LI2005-01-251-10/+5
| | | | Notes: svn path=/head/; revision=140797
* Use modern style defination for main() and move a externXin LI2005-01-252-4/+6
| | | | | | | | | declaration to global section. Bump WARNS?= to 6 Notes: svn path=/head/; revision=140796
* Use the standard section name.Ruslan Ermilov2005-01-181-3/+3
| | | | Notes: svn path=/head/; revision=140456
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-4/+8
| | | | Notes: svn path=/head/; revision=131488
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-092-8/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Centralize _PATH_* definitions.David E. O'Brien2003-05-052-43/+1
| | | | | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me) Notes: svn path=/head/; revision=114763
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* Fixed the abuses of .Ql visible on stderr in troff mode.Ruslan Ermilov2002-12-231-1/+1
| | | | | | | PR: docs/37176 Notes: svn path=/head/; revision=108221
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-1/+1
| | | | Notes: svn path=/head/; revision=102231
* The .Nm utility.Philippe Charnier2002-07-061-3/+4
| | | | Notes: svn path=/head/; revision=99503
* Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.Juli Mallett2002-05-171-1/+1
| | | | Notes: svn path=/head/; revision=96807
* more file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96707
* o remove __PWarner Losh2002-03-211-9/+9
| | | | | | | o remove main prototype Notes: svn path=/head/; revision=92883
* Default to WARNS=2.David E. O'Brien2001-12-041-1/+0
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Set BINOWN=root explicitly for setuid root binaries.Ruslan Ermilov2001-09-131-0/+1
| | | | | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case. Notes: svn path=/head/; revision=83391