From 194c99126c20e0f889abcb17f6a16df260c5b1db Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 19 May 2014 20:49:39 -0400 Subject: [PATCH] Include tids service unit and schema sql. --- Makefile.am | 5 +++++ schema.sql | 4 ++++ tids.service | 12 ++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 schema.sql create mode 100644 tids.service diff --git a/Makefile.am b/Makefile.am index 717b265..0beaa01 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,5 +49,10 @@ noinst_HEADERS = include/gsscon.h include/tr_config.h \ include/tr_comm.h include/tr_apc.h \ include/tr_filter.h +pkgdata_DATA=schema.sql +systemddir=/lib/systemd/system + +systemd_DATA=tids.service + EXTRA_DIST = trust_router.spec diff --git a/schema.sql b/schema.sql new file mode 100644 index 0000000..443328c --- /dev/null +++ b/schema.sql @@ -0,0 +1,4 @@ +create table if not exists psk_keys (keyid text primary key, key blob); +.quit + + diff --git a/tids.service b/tids.service new file mode 100644 index 0000000..e69107e --- /dev/null +++ b/tids.service @@ -0,0 +1,12 @@ +[Unit] +Description = Trust Identity Protocol Server +Before=freeradius.service + +[Service] +EnvironmentFile=/etc/default/trust_router +ExecPre=/usr/bin/sqlite3 -init /usr/share/trust_router/schema.sql /var/lib/trustrouter/keys +ExecStart=/usr/bin/tids ${ipaddr} ${gssname} ${hostname} /var/lib/trustrouter/keys +Restart=always +StandardOutput=syslog +StandardError=inherit +User=trustrouter -- 2.1.4