summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-13 04:05:28 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-05 14:19:14 -0400
commit5db22f490dbe06a98fed3564f82c9e92ef46b9e6 (patch)
tree8035a91480a56db4c02032754342aa9f5d544571 /systemd
parent683fd2a640db4f973ff5f975f013f302db26e82a (diff)
downloadpython-systemd-5db22f490dbe06a98fed3564f82c9e92ef46b9e6.tar.gz
python: change license to LGPL 2.1
The original license has been MIT for this code, but David Strauss (its original author) agreed to relicense it to LGPL 2.1 for inclusion in systemd.
Diffstat (limited to 'systemd')
-rw-r--r--systemd/__init__.py18
-rw-r--r--systemd/_journal.c21
-rw-r--r--systemd/journal.py19
3 files changed, 58 insertions, 0 deletions
diff --git a/systemd/__init__.py b/systemd/__init__.py
index e69de29..0d56b99 100644
--- a/systemd/__init__.py
+++ b/systemd/__init__.py
@@ -0,0 +1,18 @@
+# -*- Mode: python; indent-tabs-mode: nil -*- */
+#
+# This file is part of systemd.
+#
+# Copyright 2012 David Strauss
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# systemd 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with systemd; If not, see <http://www.gnu.org/licenses/>.
diff --git a/systemd/_journal.c b/systemd/_journal.c
index 3e10981..64310a7 100644
--- a/systemd/_journal.c
+++ b/systemd/_journal.c
@@ -1,3 +1,24 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+/***
+ This file is part of systemd.
+
+ Copyright 2012 David Strauss
+
+ systemd is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
+ (at your option) any later version.
+
+ systemd 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
#include <Python.h>
#define SD_JOURNAL_SUPPRESS_LOCATION
diff --git a/systemd/journal.py b/systemd/journal.py
index 53e992b..0f8a330 100644
--- a/systemd/journal.py
+++ b/systemd/journal.py
@@ -1,3 +1,22 @@
+# -*- Mode: python; indent-tabs-mode: nil -*- */
+#
+# This file is part of systemd.
+#
+# Copyright 2012 David Strauss
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# systemd 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with systemd; If not, see <http://www.gnu.org/licenses/>.
+
import traceback as _traceback
import os as _os
from syslog import (LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR,