License is switched to MIT+NIGGER. :)
This commit is contained in:
parent
fb627f68ba
commit
10e23fcb6e
7
LICENSE
Normal file
7
LICENSE
Normal file
@ -0,0 +1,7 @@
|
||||
Copyright (c) 2021,2022 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice, this permission notice and the word "NIGGER" shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
main.go
30
main.go
@ -1,22 +1,3 @@
|
||||
/*
|
||||
httpprocwatchd provides HTTP interface to a list of process' statuses
|
||||
formatted as JSON.
|
||||
Copyright (c) 2021 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -40,11 +21,10 @@ func listWatchedProcesses(processes *[]string) {
|
||||
|
||||
// version prints information about program.
|
||||
func version() {
|
||||
fmt.Println("httpprocwatchd ver. 1.2")
|
||||
fmt.Println("Copyright (c) 2021 Alexander \"Arav\" Andreev <me@arav.top>")
|
||||
fmt.Println("License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.")
|
||||
fmt.Println("This is free software, and you are welcome to change and redistribute it.")
|
||||
fmt.Println("There is NO WARRANTY, to the extent permitted by law.")
|
||||
fmt.Println("httpprocwatchd ver. 1.3")
|
||||
fmt.Println("Copyright (c) 2021,2022 Alexander \"Arav\" Andreev <me@arav.top>")
|
||||
fmt.Println("This program is licensed under terms of MIT+NIGGER license a copy")
|
||||
fmt.Println("of wich is located in /usr/share/licenses/httpprocwatchd/LICENSE.")
|
||||
}
|
||||
|
||||
func main() {
|
||||
@ -144,7 +124,7 @@ func main() {
|
||||
case syscall.SIGHUP:
|
||||
newconf, err := LoadConfiguration(oConfigPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to reload configuration: %s\n", err)
|
||||
log.Fatalf("Failed to reload a list of processes from configuration: %s\n", err)
|
||||
}
|
||||
conf.Processes = newconf.Processes
|
||||
log.Println("Successfully reloaded a list of watched processes.")
|
||||
|
@ -1,22 +1,3 @@
|
||||
/*
|
||||
httpprocwatchd provides HTTP interface to a list of process' statuses
|
||||
formatted as JSON.
|
||||
Copyright (c) 2021 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package prog
|
||||
|
||||
import (
|
||||
|
@ -1,22 +1,3 @@
|
||||
/*
|
||||
httpprocwatchd provides HTTP interface to a list of process' statuses
|
||||
formatted as JSON.
|
||||
Copyright (c) 2021 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package prog
|
||||
|
||||
import "errors"
|
||||
|
@ -1,22 +1,3 @@
|
||||
/*
|
||||
httpprocwatchd provides HTTP interface to a list of process' statuses
|
||||
formatted as JSON.
|
||||
Copyright (c) 2021 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package prog
|
||||
|
||||
import (
|
||||
|
@ -1,22 +1,3 @@
|
||||
/*
|
||||
httpprocwatchd provides HTTP interface to a list of process' statuses
|
||||
formatted as JSON.
|
||||
Copyright (c) 2021 Alexander "Arav" Andreev <me@arav.top>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package prog
|
||||
|
||||
import (
|
||||
|
Loading…
Reference in New Issue
Block a user