From 10e23fcb6ef5c0bee9fda0cbe7d827a4b2c447f0 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 2 Jan 2022 05:13:20 +0400 Subject: [PATCH] License is switched to MIT+NIGGER. :) --- LICENSE | 7 +++++++ main.go | 30 +++++------------------------- prog/confguration.go | 19 ------------------- prog/errors.go | 19 ------------------- prog/processlist.go | 19 ------------------- prog/server.go | 19 ------------------- 6 files changed, 12 insertions(+), 101 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..07970f6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright (c) 2021,2022 Alexander "Arav" Andreev + +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. diff --git a/main.go b/main.go index e24e8ca..04ecc11 100644 --- a/main.go +++ b/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 - - 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 . -*/ - 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 ") - fmt.Println("License GPLv3+: GNU GPL version 3 or later .") - 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 ") + 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.") diff --git a/prog/confguration.go b/prog/confguration.go index c621b8a..a22434b 100644 --- a/prog/confguration.go +++ b/prog/confguration.go @@ -1,22 +1,3 @@ -/* - httpprocwatchd provides HTTP interface to a list of process' statuses - formatted as JSON. - Copyright (c) 2021 Alexander "Arav" Andreev - - 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 . -*/ - package prog import ( diff --git a/prog/errors.go b/prog/errors.go index 45592f4..b7a9c58 100644 --- a/prog/errors.go +++ b/prog/errors.go @@ -1,22 +1,3 @@ -/* - httpprocwatchd provides HTTP interface to a list of process' statuses - formatted as JSON. - Copyright (c) 2021 Alexander "Arav" Andreev - - 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 . -*/ - package prog import "errors" diff --git a/prog/processlist.go b/prog/processlist.go index af94af6..a9f0e9b 100644 --- a/prog/processlist.go +++ b/prog/processlist.go @@ -1,22 +1,3 @@ -/* - httpprocwatchd provides HTTP interface to a list of process' statuses - formatted as JSON. - Copyright (c) 2021 Alexander "Arav" Andreev - - 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 . -*/ - package prog import ( diff --git a/prog/server.go b/prog/server.go index 31228ba..dde888c 100644 --- a/prog/server.go +++ b/prog/server.go @@ -1,22 +1,3 @@ -/* - httpprocwatchd provides HTTP interface to a list of process' statuses - formatted as JSON. - Copyright (c) 2021 Alexander "Arav" Andreev - - 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 . -*/ - package prog import (